diff --git a/crates/primitives/src/result.rs b/crates/primitives/src/result.rs index 75b833c5b44..ed3255d065b 100644 --- a/crates/primitives/src/result.rs +++ b/crates/primitives/src/result.rs @@ -24,11 +24,7 @@ pub enum ExecutionResult { output: Output, }, /// Reverted by `REVERT` opcode that doesn't spend all gas. - Revert { - gas_used: u64, - logs: Vec, - return_value: Bytes, - }, + Revert { reason: Bytes, gas_used: u64 }, /// Reverted for various reasons and spend all gas. Halt { reason: Halt, diff --git a/crates/revm/src/evm_impl.rs b/crates/revm/src/evm_impl.rs index 037c7027a5d..7ae80ae7db4 100644 --- a/crates/revm/src/evm_impl.rs +++ b/crates/revm/src/evm_impl.rs @@ -226,12 +226,11 @@ impl<'a, GSPEC: Spec, DB: Database, const INSPECT: bool> Transact output, }, SuccessOrHalt::Revert => ExecutionResult::Revert { - gas_used, - logs, - return_value: match output { + reason: match output { Output::Call(return_value) => return_value, Output::Create(return_value, _) => return_value, }, + gas_used, }, SuccessOrHalt::Halt(reason) => ExecutionResult::Halt { reason, gas_used }, SuccessOrHalt::FatalExternalError => {