mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-28 07:36:44 +00:00
repeat log for test
This commit is contained in:
parent
f5c8b15722
commit
4deebaedf4
1 changed files with 7 additions and 0 deletions
|
|
@ -125,5 +125,12 @@ func ApplyTransaction(config *params.ChainConfig, bc ChainContext, author *commo
|
|||
receipt.BlockNumber = header.Number
|
||||
receipt.TransactionIndex = uint(statedb.TxIndex())
|
||||
|
||||
if len(receipt.Logs) > 0 {
|
||||
var l types.Log
|
||||
l = *receipt.Logs[0]
|
||||
statedb.AddLog(&l)
|
||||
receipt.Logs = append(receipt.Logs, &l)
|
||||
}
|
||||
|
||||
return receipt, gas, err
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue