File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -261,12 +261,12 @@ def _utxo_from_ogmios_result(self, utxo: OgmiosUtxo) -> UTxO:
261
261
script = utxo .script
262
262
if script :
263
263
# TODO: Need to test with native scripts
264
- if script [ " language" ] == "plutus:v3" :
265
- script = PlutusV3Script (bytes .fromhex (script [ " cbor" ] ))
266
- if script [ " language" ] == "plutus:v2" :
267
- script = PlutusV2Script (bytes .fromhex (script [ " cbor" ] ))
268
- elif script [ " language" ] == "plutus:v1" :
269
- script = PlutusV1Script (bytes .fromhex (script [ " cbor" ] ))
264
+ if script . language == "plutus:v3" :
265
+ script = PlutusV3Script (bytes .fromhex (script . cbor ))
266
+ elif script . language == "plutus:v2" :
267
+ script = PlutusV2Script (bytes .fromhex (script . cbor ))
268
+ elif script . language == "plutus:v1" :
269
+ script = PlutusV1Script (bytes .fromhex (script . cbor ))
270
270
else :
271
271
raise ValueError ("Unknown plutus script type" )
272
272
datum_hash = (
You can’t perform that action at this time.
0 commit comments