You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Motivation**
Add specific error variants for system contract errors
`SystemContractEmpty` & `SystemContractCallFailed`.
<!-- Why does this pull request exist? What are its goals? -->
**Description**
* Add error variants `SystemContractEmpty` & `SystemContractCallFailed`
* (Misc) minor change to error message
<!-- A clear and concise general description of the changes this PR
introduces -->
<!-- Link to issues: Resolves#111, Resolves#222 -->
Allows us to better map errors on execution-spec-tests
// EIP-7251 specifies that a failed system call invalidates the entire block.
269
273
ExecutionResult::Halt{ reason, gas_used } => {
270
274
let err_str = format!("Transaction HALT when calling CONSOLIDATION_REQUEST_PREDEPLOY_ADDRESS with reason: {reason} and with used gas: {gas_used}");
271
-
Err(EvmError::Custom(err_str))
275
+
Err(EvmError::SystemContractCallFailed(err_str))
272
276
}
273
277
ExecutionResult::Revert{ gas_used, output } => {
274
278
let err_str = format!("Transaction REVERT when calling CONSOLIDATION_REQUEST_PREDEPLOY_ADDRESS with output: {:?} and with used gas: {gas_used}", output);
0 commit comments