-
Notifications
You must be signed in to change notification settings - Fork 198
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
fix: format error stack for rpc v0.8 #2523
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2523 +/- ##
=======================================
Coverage 73.70% 73.70%
=======================================
Files 137 137
Lines 16711 16711
=======================================
Hits 12317 12317
+ Misses 3534 3531 -3
- Partials 860 863 +3 ☔ View full report in Codecov by Sentry. |
3a8a53a
to
64b55f8
Compare
7e1b7a8
to
459542c
Compare
459542c
to
ddb47ad
Compare
ExecutionError
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test code please
03aea61
to
e773ee5
Compare
e773ee5
to
0c31e21
Compare
- Introduced `ExecutionError` enum to encapsulate different error types, including `TransactionExecutionError` and `CustomError`. - Added `SimulationError` enum to handle specific simulation-related errors such as `OutOfGas` and `ExecutionError`. - Implemented `fmt::Display` and `From` traits for `ExecutionError` and `SimulationError` to provide meaningful error messages and conversions. - Replaced the use of `anyhow::anyhow!` with structured error handling using the new error types. - Updated `execute_transaction` to use the new `ExecutionError` type. - Refactored `is_l2_gas_accounting_enabled`, `get_gas_vector_computation_mode`, `simulate_execution`, `set_l2_gas_limit`, and `extract_l2_gas_limit` functions to handle errors using the new error types.
6d2b972
to
b265910
Compare
No description provided.