ERC725Alliance / erc725.js

Package to interact with ERC725 smart contracts
Apache License 2.0
38 stars 29 forks source link

Improve documentation for decoding a single key vs multiple keys #461

Open CJ42 opened 3 months ago

CJ42 commented 3 months ago

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

image