We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CompactBytesArray
uint32
It seems that there is an encoding issue for the following:
ERC725.decodeData( [ { keyName: "LSP18RoyaltiesRecipients", value: "0x001c24871b3dbf969fdccf9d9beee0b56bdaef2a73a6eb885c5900001388", }, ], [ { name: "LSP18RoyaltiesRecipients", key: "0xc0569ca6c9180acc2c3590f36330a36ae19015a19f4e85c28a7631e3317e6b9d", keyType: "Singleton", valueType: "(bytes4,address,uint32)[CompactBytesArray]", valueContent: "(Bytes4,Address,Number)", }, ] );
Returns:
{ key: '0xc0569ca6c9180acc2c3590f36330a36ae19015a19f4e85c28a7631e3317e6b9d', name: 'LSP18RoyaltiesRecipients', value: [ [ '0x24871b3d', '0xbF969fdCCf9D9bEEe0b56bdaEF2a73a6eb885C59', 5000 ] ] }
The encoding is wrong
ERC725.encodeData( [ { keyName: "LSP18RoyaltiesRecipients", value: [ "0x24871b3d", "0xbF969fdCCf9D9bEEe0b56bdaEF2a73a6eb885C59", "5000", ], }, ], [ { name: "LSP18RoyaltiesRecipients", key: "0xc0569ca6c9180acc2c3590f36330a36ae19015a19f4e85c28a7631e3317e6b9d", keyType: "Singleton", valueType: "(bytes4,address,uint32)[CompactBytesArray]", valueContent: "(Bytes4,Address,Number)", }, ] );
{ keys: ['0xc0569ca6c9180acc2c3590f36330a36ae19015a19f4e85c28a7631e3317e6b9d'], values: ['0x24871b3dbf969fdccf9d9beee0b56bdaef2a73a6eb885c591388'] }
Expected value:
0000
❌ 0x%%%%24871b3dbf969fdccf9d9beee0b56bdaef2a73a6eb885c59%%%%1388 ✅ 0x001c24871b3dbf969fdccf9d9beee0b56bdaef2a73a6eb885c5900001388
The text was updated successfully, but these errors were encountered:
Version 0.27.0 couldn't properly parse tuples with CompactBytesArray:
0.27.0
error: Could not encode 4200. Value type uint32)[CompactBytesArray is unknown
It gets uint32 as uint32)[CompactBytesArray ...
uint32)[CompactBytesArray
Sorry, something went wrong.
No branches or pull requests
It seems that there is an encoding issue for the following:
✅ decodeData
Returns:
❌ encodeData
The encoding is wrong
Returns:
Expected value:
0000
for the utin32Related to:
The text was updated successfully, but these errors were encountered: