Open CJ42 opened 3 months ago
The documentation does not make it clear that it is possible to use ERC725.decodeData(...) to decode both:
ERC725.decodeData(...)
See examples below
This can be useful to know, as encodeData only works with objects right now, so array destructuring can be cumbersome at times.
encodeData
https://github.com/ERC725Alliance/erc725.js/blob/develop/docs/methods.md#single-key-example
Summary
The documentation does not make it clear that it is possible to use
ERC725.decodeData(...)
to decode both:See examples below
This can be useful to know, as
encodeData
only works with objects right now, so array destructuring can be cumbersome at times.https://github.com/ERC725Alliance/erc725.js/blob/develop/docs/methods.md#single-key-example