|
|
@ -355,10 +355,14 @@ export class Blockchain extends Plugin { |
|
|
|
this.executionContext.detectNetwork((error, network) => { |
|
|
|
this.executionContext.detectNetwork((error, network) => { |
|
|
|
if (error || !network) return |
|
|
|
if (error || !network) return |
|
|
|
if (network.name === 'VM') return |
|
|
|
if (network.name === 'VM') return |
|
|
|
this.call('terminal', 'logHtml', |
|
|
|
const viewEtherScanLink = etherScanLink(network.name, txhash) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (viewEtherScanLink) { |
|
|
|
|
|
|
|
this.call('terminal', 'logHtml', |
|
|
|
(<a href={etherScanLink(network.name, txhash)} target="_blank"> |
|
|
|
(<a href={etherScanLink(network.name, txhash)} target="_blank"> |
|
|
|
view on etherscan |
|
|
|
view on etherscan |
|
|
|
</a>)) |
|
|
|
</a>)) |
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
this.txRunner = new TxRunner(web3Runner, { runAsync: true }) |
|
|
|
this.txRunner = new TxRunner(web3Runner, { runAsync: true }) |
|
|
|