Open SeungheonOh opened 2 months ago
Since PMap
can also be used for non-ledger, non-data encoded type, we might want to take a look at making a new type specifically for ledger types.
PMap
is used nowhere but the ledger API. I don't think I object terribly to making it ledger-only, as it'll reduce type creep.
Currently, it's just raw newtype of
PBuiltinList
which breaks thePTryFrom
subtype checking. We should wrapPBuiltinList
withPDataNewtype
so that we can ensure it is represented as Data all time when used as ledger types