Skip to content

Commit

Permalink
Fix hash of unit
Browse files Browse the repository at this point in the history
  • Loading branch information
nielstron committed Oct 4, 2023
1 parent 00a9a70 commit a5b2245
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/pycardano/test_plutus.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
plutus_script_hash,
id_map,
Datum,
Unit,
)
from pycardano.serialization import IndefiniteList, RawCBOR

Expand Down Expand Up @@ -207,11 +208,10 @@ def test_plutus_data_from_json_wrong_data_structure_type():


def test_plutus_data_hash():
print(Unit().to_cbor_hex())
assert (
bytes.fromhex(
"19d31e4f3aa9b03ad93b64c8dd2cc822d247c21e2c22762b7b08e6cadfeddb47"
)
== PlutusData().hash().payload
"923918e403bf43c34b4ef6b48eb2ee04babed17320d8d1b9ff9ad086e86f44ec"
== Unit().hash().payload.hex()
)


Expand Down

0 comments on commit a5b2245

Please sign in to comment.