Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into tarekkma-up/refun…
Browse files Browse the repository at this point in the history
…d-gas-pov
  • Loading branch information
TarekkMA committed Mar 6, 2025
2 parents 444b528 + 0e7c6cd commit 48a3f2e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions frame/evm/src/runner/stack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,15 @@ where
let used_gas = executor.used_gas();
let effective_gas = core::cmp::max(core::cmp::max(used_gas, pov_gas), storage_gas);

log::debug!(
target: "evm",
"Calculating effective gas: max(used: {}, pov: {}, storage: {}) = {}",
used_gas,
pov_gas,
storage_gas,
effective_gas
);

(reason, retv, used_gas, U256::from(effective_gas))
});

Expand Down

0 comments on commit 48a3f2e

Please sign in to comment.