mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-25 13:07:17 +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}),
|
||||
}
|
||||
|
||||
// Assign receipt status or post state.
|
||||
if len(receipt.PostState) > 0 {
|
||||
fields["root"] = hexutil.Bytes(receipt.PostState)
|
||||
} else {
|
||||
fields["status"] = hexutil.Uint(receipt.Status)
|
||||
}
|
||||
// Assign receipt status.
|
||||
fields["status"] = receipt.Status
|
||||
if receipt.Logs == nil {
|
||||
fields["logs"] = [][]*types.Log{}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user