Skip to content

Fix kupo plutusv2 script from kupo #253

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 11, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix kupo plutusv2 script from kupo
  • Loading branch information
nielstron committed Jun 8, 2023
commit 82540f7938b7f195cf7f5d3b8373d9640735dba4
4 changes: 2 additions & 2 deletions pycardano/backend/ogmios.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,11 +297,11 @@ def _utxos_kupo(self, address: str) -> List[UTxO]:
script = requests.get(kupo_script_url).json()
if script["language"] == "plutus:v2":
script = PlutusV2Script(
cbor2.loads(bytes.fromhex(script["script"]))
bytes.fromhex(script["script"])
)
elif script["language"] == "plutus:v1":
script = PlutusV1Script(
cbor2.loads(bytes.fromhex(script["script"]))
bytes.fromhex(script["script"])
)
else:
raise ValueError("Unknown plutus script type")
Expand Down