Merge pull request #2713 from ethereum/txhash-terminal

Fixed wrong display of block number and index [block: txIndex:] for transactions in terminal.
pull/5370/head
yann300 5 years ago committed by GitHub
commit cc182fd4fd
  1. 4
      src/app/ui/txLogger.js

@ -299,8 +299,8 @@ function context (self, opts, blockchain) {
var hash = data.tx.hash ? helper.shortenHexData(data.tx.hash) : '' var hash = data.tx.hash ? helper.shortenHexData(data.tx.hash) : ''
var input = data.tx.input ? helper.shortenHexData(data.tx.input) : '' var input = data.tx.input ? helper.shortenHexData(data.tx.input) : ''
var logs = data.logs && data.logs.decoded && data.logs.decoded.length ? data.logs.decoded.length : 0 var logs = data.logs && data.logs.decoded && data.logs.decoded.length ? data.logs.decoded.length : 0
var block = data.tx.blockNumber || '' var block = data.receipt ? data.receipt.blockNumber : data.tx.blockNumber || ''
var i = data.tx.transactionIndex var i = data.receipt ? data.receipt.transactionIndex : data.tx.transactionIndex
var value = val ? typeConversion.toInt(val) : 0 var value = val ? typeConversion.toInt(val) : 0
if (blockchain.getProvider() === 'vm') { if (blockchain.getProvider() === 'vm') {
return yo` return yo`

Loading…
Cancel
Save