Skip to content
New issue

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

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

Merged
merged 4 commits into from
May 21, 2024

Conversation

CJ42
Copy link
Collaborator

@CJ42 CJ42 commented May 17, 2024

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:

keyType: 'Singleton',
valueContent: 'Address',
valueType: 'address',
},
'0xdf30dba06db6a30e65354d9a64c6098600000000000000000000000000000000': {
name: 'AddressPermissions[0]',
name: 'AddressPermissions[]',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a breaking change - we need to flag it as such

@CJ42 CJ42 changed the title feat: allow to encode array index using dynamicKeyPart in encodeData + return dynamicName with getSchema for Arrays feat!: allow to encode array index using dynamicKeyPart in encodeData + return dynamicName with getSchema for Arrays May 21, 2024
@CJ42 CJ42 merged commit 622675d into develop May 21, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants