From 3f05ad9842a1bdc1c2d25059c9b4dbe007e10dd7 Mon Sep 17 00:00:00 2001 From: Sina Mahmoodi Date: Thu, 28 Nov 2024 17:07:57 +0100 Subject: [PATCH] fix --- 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 149dfee5050d..170337711148 100644 --- a/core/state_processor.go +++ b/core/state_processor.go @@ -140,7 +140,7 @@ func ApplyTransactionWithEVM(msg *Message, gp *GasPool, statedb *state.StateDB, hooks.OnTxStart(evm.GetVMContext(), tx, msg.From) } if hooks.OnTxEnd != nil { - defer hooks.OnTxEnd(receipt, err) + defer func() { hooks.OnTxEnd(receipt, err) }() } }