From 59e74dc93b38e03716784dbd3f46498ec1225bc3 Mon Sep 17 00:00:00 2001 From: Wodann Date: Thu, 26 Jan 2023 10:43:39 -0300 Subject: [PATCH] improvement: review suggestions --- crates/primitives/src/result.rs | 6 +----- crates/revm/src/evm_impl.rs | 3 +-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/crates/primitives/src/result.rs b/crates/primitives/src/result.rs index 75b833c5b4..0f2e8a0b16 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 { gas_used: u64, output: Bytes }, /// 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 037c7027a5..f01631ef8e 100644 --- a/crates/revm/src/evm_impl.rs +++ b/crates/revm/src/evm_impl.rs @@ -227,8 +227,7 @@ impl<'a, GSPEC: Spec, DB: Database, const INSPECT: bool> Transact }, SuccessOrHalt::Revert => ExecutionResult::Revert { gas_used, - logs, - return_value: match output { + output: match output { Output::Call(return_value) => return_value, Output::Create(return_value, _) => return_value, },