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

Add keys (indexed fields aka topics) to the EventType (abi v2) #1520

Merged

Conversation

m-kus
Copy link
Contributor

@m-kus m-kus commented Nov 21, 2024

Issue: Currently ABI v2 does not preserve the event "kind" information which is necessary for decoding event payloads structured as list of keys + list of data fields.

Introduced changes

This PR adds new keys field to the EventType which contains the list of event fields marked with #[key] in Cairo code.

  • This PR contains breaking changes

starknet_py/abi/v2/shape.py Outdated Show resolved Hide resolved
@franciszekjob
Copy link
Collaborator

Hi @m-kus, thanks for providing the PR :) left one small comment.

@m-kus m-kus requested a review from franciszekjob November 22, 2024 11:16
Copy link
Collaborator

@franciszekjob franciszekjob left a comment

Choose a reason for hiding this comment

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

Thanks for contribution @m-kus :)

@franciszekjob franciszekjob merged commit 3ffc7d8 into software-mansion:development Dec 8, 2024
9 of 10 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