Skip to content

Commit

Permalink
fix IsDebug for applyTransaction
Browse files Browse the repository at this point in the history
  • Loading branch information
0xmountaintop committed Oct 15, 2024
1 parent 20f8ade commit 0f3fa9c
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 0f3fa9c

Please sign in to comment.