Skip to content

Commit

Permalink
fix IsDebug for applyTransaction (#1070)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xmountaintop authored Oct 15, 2024
1 parent 20f8ade commit f14ecc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/state_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
Expand Down

0 comments on commit f14ecc4

Please sign in to comment.