Skip to content

feat(sc): handle UpdateState errors#863

Merged
x-mass merged 1 commit intomainfrom
sc-update-state-errors
Apr 28, 2025
Merged

feat(sc): handle UpdateState errors#863
x-mass merged 1 commit intomainfrom
sc-update-state-errors

Conversation

@x-mass
Copy link
Copy Markdown
Contributor

@x-mass x-mass commented Apr 25, 2025

Short Summary

Handle errors the same way we do for CommitBatch transaction.

What Changes Were Made

  • Handle UpdateState errors similarly to how we handle CommitBatch transaction errors.
  • If the data appears unsynced, invoke the resetter.
  • If the data is invalid, we currently call the resetter as well — this should be changed to panic in production.
  • Add new rollup contract errors to the error wrapper.
  • Remove the redundant simulation step in the proposer before transaction submission, as it is already performed during the eth_estimateGas call.

Checklist

  • I have read and followed the Contributing Guide
  • I have tested the changes locally
  • I have added relevant tests (if applicable)
  • I have updated documentation/comments (if applicable)

- Handle `UpdateState` errors similarly to how we handle `CommitBatch` transaction errors.
- If the data appears unsynced, invoke the resetter.
- If the data is invalid, we currently call the resetter as well — this should be changed to `panic` in production.
- Add new rollup contract errors to the error wrapper.
- Remove the redundant simulation step in the proposer before transaction submission, as it is already performed during the `eth_estimateGas` call.
@x-mass x-mass added this pull request to the merge queue Apr 28, 2025
Merged via the queue into main with commit 9cde356 Apr 28, 2025
16 checks passed
@x-mass x-mass deleted the sc-update-state-errors branch April 28, 2025 06:49
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