Skip to content

Commit 8dd497d

Browse files
authored
internal: deref gasUsed pointer in eth_simulate log ethereum#33192 (#1794)
1 parent af7e479 commit 8dd497d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/ethapi/simulate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ func (sim *simulator) sanitizeCall(call *TransactionArgs, state *state.StateDB,
255255
call.Gas = (*hexutil.Uint64)(&remaining)
256256
}
257257
if *gasUsed+uint64(*call.Gas) > blockContext.GasLimit {
258-
return &blockGasLimitReachedError{fmt.Sprintf("block gas limit reached: %d >= %d", gasUsed, blockContext.GasLimit)}
258+
return &blockGasLimitReachedError{fmt.Sprintf("block gas limit reached: %d >= %d", *gasUsed, blockContext.GasLimit)}
259259
}
260260
if err := call.CallDefaults(sim.gp.Gas(), header.BaseFee, sim.chainConfig.ChainID); err != nil {
261261
return err

0 commit comments

Comments
 (0)