fix_receipt_status (#2250)

This commit is contained in:
Alex Sharov 2021-06-30 18:56:00 +07:00 committed by GitHub
parent 6df7230108
commit bfe4d97fae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -337,7 +337,7 @@ func marshalReceipt(receipt *types.Receipt, txn types.Transaction, chainConfig *
fields["effectiveGasPrice"] = hexutil.Uint64(gasPrice.Uint64()) fields["effectiveGasPrice"] = hexutil.Uint64(gasPrice.Uint64())
} }
// Assign receipt status. // Assign receipt status.
fields["status"] = receipt.Status fields["status"] = hexutil.Uint64(receipt.Status)
if receipt.Logs == nil { if receipt.Logs == nil {
fields["logs"] = [][]*types.Log{} fields["logs"] = [][]*types.Log{}
} }