diff --git a/core/state_processor.go b/core/state_processor.go index bed6a073063d8d327d3542abedfa12a99cd0ed16..0e51d400e5ed775e5ecf4fb57d9c34aa003fb2ae 100644 --- a/core/state_processor.go +++ b/core/state_processor.go @@ -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 }