Skip to content

Commit fd3ce34

Browse files
authored
Fix actually filtering spent utxos out
1 parent 9fb711a commit fd3ce34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pycardano/backend/ogmios.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def _utxos_kupo(self, address: str) -> List[UTxO]:
267267
tx_id = result["transaction_id"]
268268
index = result["output_index"]
269269

270-
if result["spent_at"] is not None:
270+
if result["spent_at"] is None:
271271
tx_in = TransactionInput.from_primitive([tx_id, index])
272272

273273
lovelace_amount = result["value"]["coins"]

0 commit comments

Comments
 (0)