From 0f3fa9cdd8e352d0b4a6eba15cf197866c5b91af Mon Sep 17 00:00:00 2001 From: HAOYUatHZ Date: Tue, 15 Oct 2024 13:54:38 +1100 Subject: [PATCH] fix `IsDebug` for `applyTransaction` --- core/state_processor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) }