We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71c5a62 commit 62a0af1Copy full SHA for 62a0af1
test/pycardano/test_serialization.py
@@ -1072,4 +1072,6 @@ def test_indefinite_list_highjacking_does_not_break_cbor2():
1072
ls = IndefiniteFrozenList(["hello"])
1073
ls.freeze()
1074
a = {ls: 1}
1075
- cbor2.loads(cbor2.dumps(a, default=default_encoder))
+ encoded = cbor2.dumps(a, default=default_encoder)
1076
+ decoded = cbor2.loads(encoded)
1077
+ assert isinstance(list(decoded.keys())[0], IndefiniteList)
0 commit comments