Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions chain/ethereum/src/call_helper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,17 @@ const RPC_EXECUTION_ERRORS: &[&str] = &[
"invalidjump",
"notactivated",
"invalidfeopcode",
// Reth surfaces EVM halts via `EvmHalt(HaltReason)`, formatted with the
// reason's `Debug` repr (`"EVM error: {0:?}"`). revm's `HaltReason`
// variants are CamelCase with no spaces, so e.g. a stack underflow arrives
// as "EVM error: StackUnderflow", which the space-separated "stack
// underflow" above does not match. "invalidjump"/"invalidfeopcode" already
// cover the matching variants; these add the rest. Reth's OutOfGas is
// handled before EvmHalt and rendered as "out of gas: ...", so it is
// already covered above. See https://github.com/streamingfast/eth-go/pull/10.
"stackunderflow",
"stackoverflow",
"opcodenotfound",
];

/// Helper that checks if a geth style RPC error message corresponds to a revert.
Expand Down
Loading