diff --git a/internal/ethapi/simulate.go b/internal/ethapi/simulate.go index 47785017aaa2..48332eca49c7 100644 --- a/internal/ethapi/simulate.go +++ b/internal/ethapi/simulate.go @@ -255,7 +255,7 @@ func (sim *simulator) sanitizeCall(call *TransactionArgs, state *state.StateDB, call.Gas = (*hexutil.Uint64)(&remaining) } if *gasUsed+uint64(*call.Gas) > blockContext.GasLimit { - return &blockGasLimitReachedError{fmt.Sprintf("block gas limit reached: %d >= %d", gasUsed, blockContext.GasLimit)} + return &blockGasLimitReachedError{fmt.Sprintf("block gas limit reached: %d >= %d", *gasUsed, blockContext.GasLimit)} } if err := call.CallDefaults(sim.gp.Gas(), header.BaseFee, sim.chainConfig.ChainID); err != nil { return err