rpc: fix receipt logs (#285)

* update GetTransactionReceipt and test

* change DecodeResultData err check back

* change doCall back

* change doCall back

* add logs

* remove prints
This commit is contained in:
noot
2020-05-14 16:55:33 -04:00
committed by GitHub
parent 542a25ff82
commit 51b68d7512
2 changed files with 6 additions and 0 deletions
+4
View File
@@ -708,6 +708,10 @@ func (e *PublicEthAPI) GetTransactionReceipt(hash common.Hash) (map[string]inter
status = 0 // transaction failed
}
if data.Logs == nil {
data.Logs = []*ethtypes.Log{}
}
receipt := map[string]interface{}{
// Consensus fields: These fields are defined by the Yellow Paper
"status": status,