From ec564a5de7b8933d0b37ca7e34e0a6335ac6bb34 Mon Sep 17 00:00:00 2001 From: ninabreznik Date: Mon, 4 Sep 2017 20:01:23 +0100 Subject: [PATCH] Add gas to the table --- src/app/execution/txLogger.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/app/execution/txLogger.js b/src/app/execution/txLogger.js index 15037dff34..d9a2bdead1 100644 --- a/src/app/execution/txLogger.js +++ b/src/app/execution/txLogger.js @@ -139,7 +139,7 @@ function renderKnownTransaction (self, data) { tx.removeChild(table) } else { table = createTable({ - from, to, val: data.tx.value, input: data.tx.input, hash: data.tx.hash + from, to, val: data.tx.value, input: data.tx.input, hash: data.tx.hash, gas: data.tx.gas }) tx.appendChild(table) } @@ -171,7 +171,7 @@ function renderUnknownTransaction (self, data) { tx.removeChild(table) } else { table = createTable({ - from, to, val: data.tx.value, input: data.tx.input, hash: data.tx.hash + from, to, val: data.tx.value, input: data.tx.input, hash: data.tx.hash, gas: data.tx.gas }) tx.appendChild(table) } @@ -225,6 +225,7 @@ function createTable (opts) { var val = opts.val var input = opts.input var hash = opts.hash + var gas = opts.gas return yo` @@ -241,11 +242,15 @@ function createTable (opts) { - + - + + + + +
data:${helper.shortenHexData(input)}${input}
hash:${helper.shortenHexData((hash))}${hash}
gas:${gas}
`