From 8dd497dd01afe6ceb6b2b55d514e5ece733173c3 Mon Sep 17 00:00:00 2001 From: wit liu <765765346@qq.com> Date: Thu, 4 Dec 2025 10:33:22 +0800 Subject: [PATCH] internal: deref gasUsed pointer in eth_simulate log #33192 (#1794) --- internal/ethapi/simulate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ethapi/simulate.go b/internal/ethapi/simulate.go index 47785017aa..48332eca49 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