Skip to content

Commit be8d0cf

Browse files
authored
Enable script credentials as address
1 parent 9c2d1d4 commit be8d0cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pycardano/backend/ogmios.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ def _utxos_kupo(self, address: str) -> List[UTxO]:
364364

365365
if not result["value"]["assets"]:
366366
tx_out = TransactionOutput(
367-
Address.from_primitive(address),
367+
Address.from_primitive(result["address"]),
368368
amount=lovelace_amount,
369369
datum_hash=datum_hash,
370370
datum=datum,
@@ -382,7 +382,7 @@ def _utxos_kupo(self, address: str) -> List[UTxO]:
382382
] = quantity
383383

384384
tx_out = TransactionOutput(
385-
Address.from_primitive(address),
385+
Address.from_primitive(result["address"]),
386386
amount=Value(lovelace_amount, multi_assets),
387387
datum_hash=datum_hash,
388388
datum=datum,

0 commit comments

Comments
 (0)