ERC725Alliance / erc725.js

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

fix: allow to decode `0x` as empty array `[]` for keyType `Array` #451

Closed CJ42 closed 4 months ago

CJ42 commented 4 months ago

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

Bug fix

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

When value is 0x to try to decodeData for key type Array, the following error occurs.

image

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

Allow to decode 0x as empty array [].

Other information: