From 2059b7021fbf7526fdb6d5dd13ace85ef9595826 Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Wed, 8 Apr 2020 15:08:20 +0000 Subject: [PATCH 1/2] Point blockNumber and Index to right value --- src/app/ui/txLogger.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/ui/txLogger.js b/src/app/ui/txLogger.js index 237b63fe3b..6b05c30df6 100644 --- a/src/app/ui/txLogger.js +++ b/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 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 block = data.tx.blockNumber || '' - var i = data.tx.transactionIndex + var block = data.receipt.blockNumber || '' + var i = data.receipt.transactionIndex var value = val ? typeConversion.toInt(val) : 0 if (blockchain.getProvider() === 'vm') { return yo` From 732aa6d8e6126021f801d3b670771b345efe6d1e Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Thu, 9 Apr 2020 09:24:57 +0000 Subject: [PATCH 2/2] Condition for non-receipt transaction (VM) --- src/app/ui/txLogger.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/ui/txLogger.js b/src/app/ui/txLogger.js index 6b05c30df6..8656a99985 100644 --- a/src/app/ui/txLogger.js +++ b/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 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 block = data.receipt.blockNumber || '' - var i = data.receipt.transactionIndex + var block = data.receipt ? data.receipt.blockNumber : data.tx.blockNumber || '' + var i = data.receipt ? data.receipt.transactionIndex : data.tx.transactionIndex var value = val ? typeConversion.toInt(val) : 0 if (blockchain.getProvider() === 'vm') { return yo`