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:
ledgerwatch 2021-06-23 15:52:31 +01:00 committed by GitHub
parent 5ad449ef22
commit 6292056503
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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{}
}