Skip to content

Commit

Permalink
keep gp to call always max
Browse files Browse the repository at this point in the history
  • Loading branch information
lucca30 committed Feb 4, 2025
1 parent af4a29d commit 5db5e5d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions internal/ethapi/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -1352,12 +1352,7 @@ func doCall(ctx context.Context, b Backend, args TransactionArgs, state *state.S
// Make sure the context is cancelled when the call has completed
// this makes sure resources are cleaned up.
defer cancel()
gp := new(core.GasPool)
if globalGasCap == 0 {
gp.AddGas(math.MaxUint64)
} else {
gp.AddGas(globalGasCap)
}
gp := new(core.GasPool).AddGas(math.MaxUint64)
return applyMessage(ctx, b, args, state, header, timeout, gp, &blockCtx, &vm.Config{NoBaseFee: true}, precompiles, true)
}

Expand Down

0 comments on commit 5db5e5d

Please sign in to comment.