Skip to content
Prev Previous commit
Next Next commit
ffs
  • Loading branch information
mattsse committed Nov 10, 2023
commit fabc93530dea87ed282aafbb069622e98766c8ef
4 changes: 3 additions & 1 deletion crates/evm/evm/src/inspectors/stack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,9 @@ impl InspectorStack {

// If the inspector returns a different status or a revert with a non-empty message,
// we assume it wants to tell us something
if new_status != status || new_retdata != retdata {
if new_status != status ||
(new_status == InstructionResult::Revert && new_retdata != retdata)
{
return (new_status, new_gas, new_retdata)
}
}
Expand Down