mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-25 21:17:16 +00:00
Remove root from eth_getTransactionReceipt (#2211)
* Remove root from eth_getTransactionReceipt * Simplifaction of status Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local> Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
This commit is contained in:
parent
5ad449ef22
commit
6292056503
@ -304,12 +304,8 @@ func marshalReceipt(receipt *types.Receipt, txn types.Transaction) map[string]in
|
|||||||
"logsBloom": types.CreateBloom(types.Receipts{receipt}),
|
"logsBloom": types.CreateBloom(types.Receipts{receipt}),
|
||||||
}
|
}
|
||||||
|
|
||||||
// Assign receipt status or post state.
|
// Assign receipt status.
|
||||||
if len(receipt.PostState) > 0 {
|
fields["status"] = receipt.Status
|
||||||
fields["root"] = hexutil.Bytes(receipt.PostState)
|
|
||||||
} else {
|
|
||||||
fields["status"] = hexutil.Uint(receipt.Status)
|
|
||||||
}
|
|
||||||
if receipt.Logs == nil {
|
if receipt.Logs == nil {
|
||||||
fields["logs"] = [][]*types.Log{}
|
fields["logs"] = [][]*types.Log{}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user