Add gas to the table

pull/1/head
ninabreznik 7 years ago committed by yann300
parent b8d0975d73
commit ec564a5de7
  1. 13
      src/app/execution/txLogger.js

@ -139,7 +139,7 @@ function renderKnownTransaction (self, data) {
tx.removeChild(table) tx.removeChild(table)
} else { } else {
table = createTable({ 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) tx.appendChild(table)
} }
@ -171,7 +171,7 @@ function renderUnknownTransaction (self, data) {
tx.removeChild(table) tx.removeChild(table)
} else { } else {
table = createTable({ 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) tx.appendChild(table)
} }
@ -225,6 +225,7 @@ function createTable (opts) {
var val = opts.val var val = opts.val
var input = opts.input var input = opts.input
var hash = opts.hash var hash = opts.hash
var gas = opts.gas
return yo` return yo`
<table class="${css.txTable}" id="txTable"> <table class="${css.txTable}" id="txTable">
<tr class="${css.tr}"> <tr class="${css.tr}">
@ -241,11 +242,15 @@ function createTable (opts) {
</tr class="${css.tr}"> </tr class="${css.tr}">
<tr class="${css.tr}"> <tr class="${css.tr}">
<td class="${css.td}">data:</td> <td class="${css.td}">data:</td>
<td class="${css.td}">${helper.shortenHexData(input)}</td> <td class="${css.td}">${input}</td>
</tr class="${css.tr}"> </tr class="${css.tr}">
<tr class="${css.tr}"> <tr class="${css.tr}">
<td class="${css.td}">hash:</td> <td class="${css.td}">hash:</td>
<td class="${css.td}">${helper.shortenHexData((hash))}</td> <td class="${css.td}">${hash}</td>
</tr class="${css.tr}">
<tr class="${css.tr}">
<td class="${css.td}">gas:</td>
<td class="${css.td}">${gas}</td>
</tr class="${css.tr}"> </tr class="${css.tr}">
</table> </table>
` `

Loading…
Cancel
Save