Sum types are stored as dicts in the interpreter code and it seem they cannot be hashed to be used as big_map keys.
This scenario works perfectly fine in the real Tezos node though.
When storage is converted to Python representation I always get the following exception:
pytezos.michelson.micheline.MichelsonRuntimeError: ('storage', 'big_map', 'map', "unhashable type: 'dict'")
Sum types are stored as dicts in the interpreter code and it seem they cannot be hashed to be used as
big_map
keys. This scenario works perfectly fine in the real Tezos node though.When storage is converted to Python representation I always get the following exception:
pytezos.michelson.micheline.MichelsonRuntimeError: ('storage', 'big_map', 'map', "unhashable type: 'dict'")
Here is a little sample to demonstrate this: https://github.com/konchunas/pytezos-record-as-map-key-bug