Commit ec564a5d authored by ninabreznik's avatar ninabreznik Committed by yann300

Add gas to the table

parent b8d0975d
...@@ -139,7 +139,7 @@ function renderKnownTransaction (self, data) { ...@@ -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) { ...@@ -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) { ...@@ -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) { ...@@ -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>
` `
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment