fix hooks.OnTxEnd that is passing receipt=nil

This commit is contained in:
Chris Ziogas 2025-03-18 22:01:40 +02:00
parent c4f0450710
commit 5274d292ae
No known key found for this signature in database
GPG key ID: 2329CF479E36E2DA

View file

@ -161,7 +161,8 @@ func ApplyTransactionWithEVM(msg *Message, gp *GasPool, statedb *state.StateDB,
statedb.AccessEvents().Merge(evm.AccessEvents)
}
return MakeReceipt(evm, result, statedb, blockNumber, blockHash, tx, *usedGas, root), nil
receipt = MakeReceipt(evm, result, statedb, blockNumber, blockHash, tx, *usedGas, root)
return receipt, nil
}
// MakeReceipt generates the receipt object for a transaction given its execution result.