Skip to content
This repository has been archived by the owner on Oct 20, 2024. It is now read-only.

Commit

Permalink
depth >= 2
Browse files Browse the repository at this point in the history
  • Loading branch information
hazim-j committed Jul 29, 2023
1 parent ca2e6e2 commit caa64c6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/tracer/BundlerExecutionTracer.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ var tracer = {
this.reverts.push(toHex(frame.getOutput()));
}

if (this._depth >= 3) {
if (this._depth >= 2) {
// Get the final gas item for the nested frame.
var nested = Object.assign(
{},
Expand Down Expand Up @@ -99,9 +99,7 @@ var tracer = {
used - nested.used + Math.ceil((nested.required * 64) / 63);

// Keep track of the final gas limit.
var gas = this._executionGasStack[this._depth];
this.executionGasLimit =
gas.required + Math.ceil(gas.largestFrame / 63);
this.executionGasLimit = this._executionGasStack[this._depth];
}
}
},
Expand Down

0 comments on commit caa64c6

Please sign in to comment.