ERC725Alliance / erc725.js

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

feat!: allow to encode array index using `dynamicKeyPart` in `encodeData` + return `dynamicName` with `getSchema` for Arrays #449

Closed CJ42 closed 4 months ago

CJ42 commented 5 months ago

What kind of change does this PR introduce (bug fix, feature, docs update, ...)?

🌟 Feature

What is the current behaviour (you can also link to an open issue here)?

Currently, it is not possible when using encodeData to simply encode array index data keys.

What is the new behaviour (if this is a feature change)?

Add feature for arrays that enable to pass a dynamicKeyPart as a number that will encode for an array index.

Other information: