Merge pull request #1287 from ethereum/listenOnNetworkLogs

Fix open/close for tx logs in terminal from network
pull/1/head
yann300 7 years ago committed by GitHub
commit 7f290025b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/app/execution/txLogger.js

@ -237,8 +237,8 @@ function renderUnknownTransaction (self, data) {
var obj = {from, to} var obj = {from, to}
var tx = yo` var tx = yo`
<span id="tx${data.tx.hash}"> <span id="tx${data.tx.hash}">
<i class="${css.caret} fa fa-caret-right"></i>
<div class="${css.log}" onclick=${e => txDetails(e, tx, data, obj)}> <div class="${css.log}" onclick=${e => txDetails(e, tx, data, obj)}>
<i class="${css.caret} fa fa-caret-right"></i>
${context(self, {from, to, data})} ${context(self, {from, to, data})}
<div class=${css.buttons}> <div class=${css.buttons}>
<div class=${css.debug} onclick=${(e) => debug(e, data, self)}>Debug</div> <div class=${css.debug} onclick=${(e) => debug(e, data, self)}>Debug</div>
@ -299,7 +299,6 @@ function context (self, opts) {
hash = helper.shortenHexData(data.tx.blockHash) hash = helper.shortenHexData(data.tx.blockHash)
return yo` return yo`
<div> <div>
<i class="${css.caret} fa fa-caret-right"></i>
<span class=${css.txLog}> <span class=${css.txLog}>
<span class='${css.tx}'>[block:${block} txIndex:${i}]</span> <span class='${css.tx}'>[block:${block} txIndex:${i}]</span>
<div class=${css.txItem}><span class=${css.txItemTitle}>from:</span> ${from}</div> <div class=${css.txItem}><span class=${css.txItemTitle}>from:</span> ${from}</div>

Loading…
Cancel
Save