Skip to content

Commit f6adcf9

Browse files
committed
Apply try_fix_hash procedure if kupo is available
1 parent 2a81545 commit f6adcf9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pycardano/backend/ogmios.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,10 @@ def _utxos_kupo(self, address: str) -> List[UTxO]:
344344
script = requests.get(kupo_script_url).json()
345345
if script["language"] == "plutus:v2":
346346
script = PlutusV2Script(bytes.fromhex(script["script"]))
347+
script = _try_fix_script(script_hash, script)
347348
elif script["language"] == "plutus:v1":
348349
script = PlutusV1Script(bytes.fromhex(script["script"]))
350+
script = _try_fix_script(script_hash, script)
349351
else:
350352
raise ValueError("Unknown plutus script type")
351353

0 commit comments

Comments
 (0)