-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(l2): restart processes with the proposed API (#1234)
**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 <jrchatruc@gmail.com>
- Loading branch information
1 parent
1f3f40d
commit 91b09a2
Showing
15 changed files
with
927 additions
and
647 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.