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 StateCommitted event #70

Conversation

simonDos
Copy link
Member

@simonDos simonDos commented Sep 5, 2023

Added a new event called StateCommitted with 2 variables:

  • stateId as indexed variable
  • success (result of the low-level call to onStateReceive)

Added event emission in the commitState function.

Deleted unnecessary import of IStateReceiver.

Enhanced existing tests to check for emission of the event in both cases (success true or false)
The test Infinite loop: was reverting, so the number of iterations was increased to get the desired result of the low-level call running out of gas, but the tx not reverting

Added eth-gas-reporter

@gretzke gretzke self-requested a review September 5, 2023 16:02
@gretzke gretzke changed the base branch from master to feat/state-committed-event September 5, 2023 16:07
@gretzke gretzke changed the base branch from feat/state-committed-event to master September 5, 2023 16:07
@gretzke gretzke changed the base branch from master to feat/state-committed-event September 5, 2023 16:08
@gretzke gretzke merged commit 5f88e12 into maticnetwork:feat/state-committed-event Sep 5, 2023
1 of 2 checks passed
@gretzke gretzke mentioned this pull request Sep 5, 2023
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