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(l2): refactor processes to handle errors at the top and use a common api #1230

Closed
wants to merge 9 commits into from

Conversation

jrchatruc
Copy link
Collaborator

Motivation

Description

@jrchatruc jrchatruc closed this Nov 26, 2024
@jrchatruc jrchatruc deleted the process-refactor branch November 26, 2024 12:36
github-merge-queue bot pushed a commit that referenced this pull request Nov 26, 2024
**Motivation**

The error handling should be the same for all processes, unwraps have to
be handled with the `?` operator so that the api can restart the process
if any `Err` is raised.

**Description**

- Use the same API proposed by the PR #1230, removing the unwraps. 
  - #1168
- When we have an error we "restart" the process, this handles the `not
committed block` error.
  - #1165
- The order of the require statements in the `verify()` function of the
`OnChainProposer` contract was changed to throw the correct error. The
error handling with the proposed API does the rest.
  - #1164.

Closes #1168
Closes #1165 
Closes #1164

---------

Co-authored-by: Javier Chatruc <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants