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}), "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{}
} }