-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(l2): trying to implement no_panic crate (#1389)
**Motivation** As explained by issue #1369, implementing the `no_panic` crate would help prevent some hidden panics. **Description** I've tried to implement it for the non-async functions, facing the following problems: - For functions interacting with `TcpStream` and the `Database` it throws a "panic compilation error". - The `keccak` function used and `c-kzg` throws the "panic compilation error". - `no_panic` seems to be a crate that aims to avoid panics in low level lib crates. - Found a potential panic in `fake_exponential`, it's solved by the `fake_exponential_checked` implementation. - Some extra changes regarding usability were added. - Remove `pub` keyword if not needed. See if we can close the issue #1369
- Loading branch information
1 parent
88c6a8c
commit 006a7f2
Showing
6 changed files
with
104 additions
and
44 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