v5.6.0
Added
-
Add a new helper function
unsafeMetatumAsJSON
which converts a detailed metadata schema into plain JavaScript, whenever possible.
For example:{ "list": [ { "string": "foo" }, { "int": 42 } ] }
→["foo", 42]
This should work for any CIP-0025 metadata, and few other formats. Yet it is unsound in the general case since not every on-chain metadata can actually be represented as JavaScript objects.
Changed
-
Fixed a bug in the JSON parser where
coins
quantities from all eras prior to Mary would be parsed asNumber
instead ofBigInt
. See #301 (:hammer: @mkazlauskas).
Removed
N/A