Skip to content

Commit

Permalink
calculating real gas used for execute_code_as_system to prevent overf…
Browse files Browse the repository at this point in the history
…lows.
  • Loading branch information
SurfingNerd committed Nov 7, 2024
1 parent c7665af commit e690fcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/ethcore/src/machine/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ impl EthereumMachine {
let output = res.return_data.to_vec();

let logs = substate.logs.clone();
let gas_used = gas;
let gas_used = gas - res.gas_left;
let mut log_bloom = Bloom::zero();
//log_bloom.accrue(logs);

Expand Down

0 comments on commit e690fcc

Please sign in to comment.