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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change fetchEvents to return transactionInfo inside events type #825

Merged
merged 4 commits into from
Apr 4, 2023

Conversation

MartinMinkov
Copy link
Contributor

Description

馃敆 Related Issue: #806

This PR addresses an issue with the internal event type in SnarkyJS. Previously, the event handling assumed that all events were contained within the same zkApp transaction, which isn't always true. Events can be emitted in different zkApp transactions, and multiple zkApp transactions can be present within a block.

To resolve this, we have updated the internal event type to include event data and transaction information as separate objects. This allows us to provide accurate information about each event, taking into account the specific transaction it belongs to.

Please note that there is a related PR for the Archive Node API, which can be found here: o1-labs/Archive-Node-API#68

Both PRs should be merged simultaneously to ensure proper coordination and integration.

Copy link
Member

@mitschabaude mitschabaude left a comment

Choose a reason for hiding this comment

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

Nice change!

@MartinMinkov MartinMinkov merged commit f585b64 into main Apr 4, 2023
@MartinMinkov MartinMinkov deleted the fix/events-transaction-info branch April 4, 2023 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants