Skip to content
This repository has been archived by the owner on Oct 4, 2019. It is now read-only.

Commit

Permalink
Merge branch 'feature/tx-status'
Browse files Browse the repository at this point in the history
  • Loading branch information
tzdybal committed Jul 26, 2018
2 parents 382aa8f + 7381d19 commit 8a3bc2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion eth/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions internal/jsre/ethereum_js.go
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down

0 comments on commit 8a3bc2d

Please sign in to comment.