forked from cerc-io/laconicd-deprecated
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user