diff --git a/eth/api.go b/eth/api.go index 1cb761274..ca467c779 100644 --- a/eth/api.go +++ b/eth/api.go @@ -1226,7 +1226,7 @@ func (s *PublicTransactionPoolAPI) GetTransactionReceipt(txHash common.Hash) (ma // We're not fully compatible with EIP-609 - just return status for all blocks. fields["status"] = nil if receipt.Status != types.TxStatusUnknown { - fields["status"] = receipt.Status + fields["status"] = rpc.NewHexNumber(receipt.Status) } return fields, nil diff --git a/internal/jsre/ethereum_js.go b/internal/jsre/ethereum_js.go index c2a1ee4bc..23e9b18c9 100644 --- a/internal/jsre/ethereum_js.go +++ b/internal/jsre/ethereum_js.go @@ -3827,6 +3827,7 @@ var outputTransactionReceiptFormatter = function (receipt){ receipt.transactionIndex = utils.toDecimal(receipt.transactionIndex); receipt.cumulativeGasUsed = utils.toDecimal(receipt.cumulativeGasUsed); receipt.gasUsed = utils.toDecimal(receipt.gasUsed); + receipt.status = utils.toDecimal(receipt.status); if(utils.isArray(receipt.logs)) { receipt.logs = receipt.logs.map(function(log){