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

Handle Starknet events keys/data correctly #1142

Draft
wants to merge 2 commits into
base: next
Choose a base branch
from

Conversation

m-kus
Copy link
Member

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

Any field in Starknet event can be marked as key (which is the same as topic in EVM) thus we need to make sure the deserializers are ordered correctly before we apply them to the raw event data (keys + data).

Note that we cannot reorder data instead because particular types might be encoded with more than one felt.

Requires software-mansion/starknet.py#1520

@m-kus m-kus force-pushed the fix/starknet-events-keys-matcher branch from c38ca0e to be4ac14 Compare November 25, 2024 16:44
@m-kus m-kus force-pushed the fix/starknet-events-keys-matcher branch 2 times, most recently from 8d2c8f0 to 360ca3e Compare December 18, 2024 16:18
@m-kus m-kus force-pushed the fix/starknet-events-keys-matcher branch from 360ca3e to 7453f73 Compare December 18, 2024 16:47
@m-kus m-kus requested review from droserasprout and Wizard1209 and removed request for droserasprout December 18, 2024 21:55
@m-kus m-kus marked this pull request as ready for review December 18, 2024 21:55
@m-kus m-kus requested a review from droserasprout December 18, 2024 21:56
@m-kus m-kus marked this pull request as draft December 18, 2024 22:02
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.

1 participant