You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to create a map with duplicate keys, which should be allowed:
m = csl.PlutusMap.new()
vs = csl.PlutusMapValues.new()
zero = csl.PlutusData.new_integer(csl.BigInt.from_str('0'))
one = csl.PlutusData.new_integer(csl.BigInt.from_str('1'))
vs.add(zero)
vs.add(one)
m.insert(zero, vs)
r = csl.PlutusData.new_map(m)
r.to_hex()
'a103010302'
Which gives me the following parse using cbor.me:
A1 # map(1)
03 # unsigned(3)
01 # unsigned(1)
##### 2 unused bytes after the end of the data item:
03 02
Seemingly, the map size is wrong. The unused bytes fall outside the map
The text was updated successfully, but these errors were encountered:
I'm trying to create a map with duplicate keys, which should be allowed:
Which gives me the following parse using cbor.me:
Seemingly, the map size is wrong. The unused bytes fall outside the map
The text was updated successfully, but these errors were encountered: