logs now is an object instead of array

pull/3094/head
yann300 7 years ago
parent 69bcd3e997
commit 3ff5670a6d
  1. 2
      src/app/execution/txLogger.js

@ -264,7 +264,7 @@ function context (self, opts) {
var val = data.tx.value var val = data.tx.value
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 : 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.tx.blockNumber || ''
var i = data.tx.transactionIndex var i = data.tx.transactionIndex
var value = val ? typeConversion.toInt(val) : 0 var value = val ? typeConversion.toInt(val) : 0

Loading…
Cancel
Save