@ -239,7 +241,9 @@ function renderUnknownTransaction (self, data) {
input:data.tx.input,
hash:data.tx.hash,
gas:data.tx.gas,
logs:data.logs
logs:data.logs,
transactionCost:data.tx.transactionCost,
executionCost:data.tx.executionCost
})
tx.appendChild(table)
}
@ -314,11 +318,27 @@ function createTable (opts) {
vargas=yo`
<trclass="${css.tr}">
<tdclass="${css.td}">gas</td>
<tdclass="${css.td}"><iclass="fa fa-clipboard ${css.clipboardCopy}"aria-hidden="true"onclick=${function(){copy(opts.gas)}}title='Copy to clipboard'></i>${opts.gas}</td>
<tdclass="${css.td}"><iclass="fa fa-clipboard ${css.clipboardCopy}"aria-hidden="true"onclick=${function(){copy(opts.gas)}}title='Copy to clipboard'></i>${opts.gas}gas</td>
</trclass="${css.tr}">
`
if(opts.gas)table.appendChild(gas)
if(opts.transactionCost){
table.appendChild(yo`
<trclass="${css.tr}">
<tdclass="${css.td}">transactioncost</td>
<tdclass="${css.td}"><iclass="fa fa-clipboard ${css.clipboardCopy}"aria-hidden="true"onclick=${function(){copy(opts.transactionCost)}}title='Copy to clipboard'></i>${opts.transactionCost}gas</td>
</trclass="${css.tr}">`)
}
if(opts.executionCost){
table.appendChild(yo`
<trclass="${css.tr}">
<tdclass="${css.td}">executioncost</td>
<tdclass="${css.td}"><iclass="fa fa-clipboard ${css.clipboardCopy}"aria-hidden="true"onclick=${function(){copy(opts.executionCost)}}title='Copy to clipboard'></i>${opts.executionCost}gas</td>