diff --git a/core/state_processor.go b/core/state_processor.go index 1cf293c88344..47c57f8c53de 100644 --- a/core/state_processor.go +++ b/core/state_processor.go @@ -144,7 +144,7 @@ func applyTransaction(msg *Message, config *params.ChainConfig, gp *GasPool, sta // Apply the transaction to the current state (included in the env). applyMessageStartTime := time.Now() result, err := ApplyMessage(evm, msg, gp, l1DataFee) - if evm.Config.Tracer.IsDebug() { + if evm.Config.Tracer != nil && evm.Config.Tracer.IsDebug() { if erroringTracer, ok := evm.Config.Tracer.(interface{ Error() error }); ok { err = errors.Join(err, erroringTracer.Error()) }