diff --git a/lib/utils/txhelper.js b/lib/utils/txhelper.js index f4abc5e5a5..cd9ba000f7 100644 --- a/lib/utils/txhelper.js +++ b/lib/utils/txhelper.js @@ -13,17 +13,17 @@ module.exports = { } } var resultJSON = { - hash: to.hex(tx.hash()), - nonce: to.hex(tx.nonce), - blockHash: to.hex(block.hash()), - blockNumber: to.hex(block.header.number), - transactionIndex: to.hex(transactionIndex), - from: to.hex(tx.from), - to: to.hex(tx.to), - value: to.hex(tx.value), - gas: to.hex(tx.gasLimit), - gasPrice: to.hex(tx.gasPrice), - input: to.hex(tx.data), + hash: to.rpcDataHexString(tx.hash()), + nonce: to.rpcDataHexString(tx.nonce), + blockHash: to.rpcDataHexString(block.hash()), + blockNumber: to.rpcQuantityHexString(block.header.number), + transactionIndex: to.rpcQuantityHexString(transactionIndex), + from: to.rpcDataHexString(tx.from), + to: to.rpcDataHexString(tx.to), + value: to.rpcQuantityHexString(tx.value), + gas: to.rpcQuantityHexString(tx.gasLimit), + gasPrice: to.rpcQuantityHexString(tx.gasPrice), + input: to.rpcDataHexString(tx.data), }; if (tx.v && tx.v.length > 0 &&