Skip to content

Commit e2d8f2d

Browse files
authored
Make plutus version detection more robust (#436)
Should address issue #426
1 parent 6e20135 commit e2d8f2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pycardano/backend/blockfrost.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def protocol_param(self) -> ProtocolParameters:
174174

175175
def _get_script(self, script_hash: str) -> ScriptType:
176176
script_type = self.api.script(script_hash).type
177-
if script_type.startswith("plutusV"):
177+
if script_type.lower().startswith("plutusv"):
178178
ps = PlutusScript.from_version(
179179
int(script_type[-1]),
180180
bytes.fromhex(self.api.script_cbor(script_hash).cbor),

0 commit comments

Comments
 (0)