This commit is contained in:
Sina Mahmoodi 2024-11-28 17:07:57 +01:00
parent da74d43ba0
commit 3f05ad9842

View file

@ -140,7 +140,7 @@ func ApplyTransactionWithEVM(msg *Message, gp *GasPool, statedb *state.StateDB,
hooks.OnTxStart(evm.GetVMContext(), tx, msg.From) hooks.OnTxStart(evm.GetVMContext(), tx, msg.From)
} }
if hooks.OnTxEnd != nil { if hooks.OnTxEnd != nil {
defer hooks.OnTxEnd(receipt, err) defer func() { hooks.OnTxEnd(receipt, err) }()
} }
} }