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: support events with the same topic from different contracts #38

Merged
merged 1 commit into from
Oct 24, 2023

Conversation

minh-bq
Copy link
Contributor

@minh-bq minh-bq commented Oct 13, 2023

Currently, 2 events with the same topic but from different contracts are not handled correctly, the first register handler callback is called for both events. This commit makes the lookup key contains the both topic and contract address to correctly find the handler callback for the event.

@huyngopt1994
Copy link

so the idea is we will use the struct containing topic and address as a key for mapping for handling this logic.

Currently, 2 events with the same topic but from different contracts are not
handled correctly, the first register handler callback is called for both
events. This commit makes the lookup key contains the both topic and contract
address to correctly find the handler callback for the event.
@minh-bq minh-bq force-pushed the feat/support-same-event-topic branch from fae6349 to fc02e35 Compare October 24, 2023 06:04
@minh-bq minh-bq merged commit 0c3cbf6 into axieinfinity:master Oct 24, 2023
@minh-bq minh-bq deleted the feat/support-same-event-topic branch October 24, 2023 06:05
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.

3 participants