repeat log for test

This commit is contained in:
Jaynti Kanani 2019-09-29 02:10:09 +05:30
parent f5c8b15722
commit 4deebaedf4
No known key found for this signature in database
GPG key ID: 4396982C976BAE5E

View file

@ -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
}