Merge pull request #1409 from ethereum/copyInput

Fix copy input field
pull/1/head
yann300 6 years ago committed by GitHub
commit 90d886a87f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/app/execution/txLogger.js

@ -392,7 +392,7 @@ function txDetails (e, tx, data, obj) {
from, from,
to, to,
gas: data.tx.gas, gas: data.tx.gas,
input: helper.shortenHexData(data.tx.input), input: data.tx.input,
'decoded input': data.resolvedData && data.resolvedData.params ? JSON.stringify(typeConversion.stringify(data.resolvedData.params), null, '\t') : ' - ', 'decoded input': data.resolvedData && data.resolvedData.params ? JSON.stringify(typeConversion.stringify(data.resolvedData.params), null, '\t') : ' - ',
'decoded output': data.resolvedData && data.resolvedData.decodedReturnValue ? JSON.stringify(typeConversion.stringify(data.resolvedData.decodedReturnValue), null, '\t') : ' - ', 'decoded output': data.resolvedData && data.resolvedData.decodedReturnValue ? JSON.stringify(typeConversion.stringify(data.resolvedData.decodedReturnValue), null, '\t') : ' - ',
logs: data.logs, logs: data.logs,
@ -514,7 +514,7 @@ function createTable (opts) {
var input = yo` var input = yo`
<tr class="${css.tr}"> <tr class="${css.tr}">
<td class="${css.td}"> input </td> <td class="${css.td}"> input </td>
<td class="${css.td}">${opts.input} <td class="${css.td}">${helper.shortenHexData(opts.input)}
${copyToClipboard(() => opts.input)} ${copyToClipboard(() => opts.input)}
</td> </td>
</tr> </tr>

Loading…
Cancel
Save