ERC725Alliance / erc725.js

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

feat: allow to pass `number` directly in array when encoding tuples #448

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)?

Current when encoding parts in tuples that are uintN, it is not possible to pass a plain number. The number always needs to be encoded as hex first, as tuples only accept string type.

image

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

Fix this behaviour by allowing to pass number for encoding.

Other information:

Closes #393