Skip to content

Commit a5b2245

Browse files
committed
Fix hash of unit
1 parent 00a9a70 commit a5b2245

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/pycardano/test_plutus.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
plutus_script_hash,
2121
id_map,
2222
Datum,
23+
Unit,
2324
)
2425
from pycardano.serialization import IndefiniteList, RawCBOR
2526

@@ -207,11 +208,10 @@ def test_plutus_data_from_json_wrong_data_structure_type():
207208

208209

209210
def test_plutus_data_hash():
211+
print(Unit().to_cbor_hex())
210212
assert (
211-
bytes.fromhex(
212-
"19d31e4f3aa9b03ad93b64c8dd2cc822d247c21e2c22762b7b08e6cadfeddb47"
213-
)
214-
== PlutusData().hash().payload
213+
"923918e403bf43c34b4ef6b48eb2ee04babed17320d8d1b9ff9ad086e86f44ec"
214+
== Unit().hash().payload.hex()
215215
)
216216

217217

0 commit comments

Comments
 (0)