Skip to content

Commit

Permalink
Simple fix plutusv3 ogmios
Browse files Browse the repository at this point in the history
  • Loading branch information
nielstron authored and cffls committed Oct 12, 2024
1 parent 3ca745a commit 3034cd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pycardano/backend/ogmios_v6.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def _utxo_from_ogmios_result(self, utxo: OgmiosUtxo) -> UTxO:
# TODO: Need to test with native scripts
if script["language"] == "plutus:v3":
script = PlutusV3Script(bytes.fromhex(script["cbor"]))
if script["language"] == "plutus:v2":
elif script["language"] == "plutus:v2":
script = PlutusV2Script(bytes.fromhex(script["cbor"]))
elif script["language"] == "plutus:v1":
script = PlutusV1Script(bytes.fromhex(script["cbor"]))
Expand Down

0 comments on commit 3034cd9

Please sign in to comment.