From 3034cd93bc5f9501564eaf90732da402cc9d59cc Mon Sep 17 00:00:00 2001 From: Niels Date: Sat, 12 Oct 2024 12:17:10 +0200 Subject: [PATCH] Simple fix plutusv3 ogmios --- pycardano/backend/ogmios_v6.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pycardano/backend/ogmios_v6.py b/pycardano/backend/ogmios_v6.py index 7e60f845..304cf24f 100644 --- a/pycardano/backend/ogmios_v6.py +++ b/pycardano/backend/ogmios_v6.py @@ -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"]))