Skip to content

Commit

Permalink
improvement: review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
Wodann committed Jan 26, 2023
1 parent 81310b9 commit 59e74dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
6 changes: 1 addition & 5 deletions crates/primitives/src/result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Log>,
return_value: Bytes,
},
Revert { gas_used: u64, output: Bytes },
/// Reverted for various reasons and spend all gas.
Halt {
reason: Halt,
Expand Down
3 changes: 1 addition & 2 deletions crates/revm/src/evm_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,7 @@ impl<'a, GSPEC: Spec, DB: Database, const INSPECT: bool> Transact<DB::Error>
},
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,
},
Expand Down

0 comments on commit 59e74dc

Please sign in to comment.