display transaction hash in log

pull/1/head
yann300 7 years ago
parent 0d65f5db20
commit 4e70cf364a
  1. 13
      src/app/execution/txLogger.js

@ -370,6 +370,7 @@ function txDetails (e, tx, data, obj) {
log.removeChild(arrow)
log.appendChild(arrowUp)
table = createTable({
hash: data.tx.transactionHash,
status: data.tx.status,
isCall: data.tx.isCall,
contractAddress: data.tx.contractAddress,
@ -405,9 +406,19 @@ function createTable (opts) {
</tr>`)
}
var transactionHash = yo`
<tr class="${css.tr}">
<td class="${css.td}"> transaction hash </td>
<td class="${css.td}">${opts.hash}
${copyToClipboard(() => opts.hash)}
</td>
</tr>
`
table.appendChild(transactionHash)
var contractAddress = yo`
<tr class="${css.tr}">
<td class="${css.td}"> contractAddress </td>
<td class="${css.td}"> contract address </td>
<td class="${css.td}">${opts.contractAddress}
${copyToClipboard(() => opts.contractAddress)}
</td>

Loading…
Cancel
Save