From 3ff5670a6daf2a05f86c0ee34db18169c79e7896 Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 25 Apr 2018 11:28:43 +0200 Subject: [PATCH] logs now is an object instead of array --- src/app/execution/txLogger.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/execution/txLogger.js b/src/app/execution/txLogger.js index c5a2349c3e..76785881a8 100644 --- a/src/app/execution/txLogger.js +++ b/src/app/execution/txLogger.js @@ -264,7 +264,7 @@ function context (self, opts) { var val = data.tx.value var hash = data.tx.hash ? helper.shortenHexData(data.tx.hash) : '' 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 i = data.tx.transactionIndex var value = val ? typeConversion.toInt(val) : 0