Skip to content

Commit

Permalink
chore: add additional docs about root call gas limit (#4292)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Aug 21, 2023
1 parent eaca2a4 commit 1563506
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/revm/revm-inspectors/src/tracing/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ impl TracingInspector {
if self.trace_stack.is_empty() {
// this is the root call which should get the original gas limit of the transaction,
// because initialization costs are already subtracted from gas_limit
// For the root call this value should use the transaction's gas limit
// See <https://github.com/paradigmxyz/reth/issues/3678> and <https://github.com/ethereum/go-ethereum/pull/27029>
gas_limit = data.env.tx.gas_limit;

// we set the spec id here because we only need to do this once and this condition is
Expand Down

0 comments on commit 1563506

Please sign in to comment.