|
|
|
@ -88,7 +88,6 @@ TxBrowser.prototype.submit = function (tx) { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
TxBrowser.prototype.update = function (error, tx) { |
|
|
|
|
var info = {} |
|
|
|
|
if (error) { |
|
|
|
|
this.view.querySelector('#error').innerHTML = error |
|
|
|
|
return |
|
|
|
@ -98,15 +97,8 @@ TxBrowser.prototype.update = function (error, tx) { |
|
|
|
|
if (!tx.to) { |
|
|
|
|
tx.to = traceHelper.contractCreationToken('0') |
|
|
|
|
} |
|
|
|
|
info.from = tx.from |
|
|
|
|
info.to = tx.to |
|
|
|
|
info.hash = tx.hash |
|
|
|
|
this.event.trigger('newTraceRequested', [this.blockNumber, this.txNumber, tx]) |
|
|
|
|
} else { |
|
|
|
|
var mes = '<not found>' |
|
|
|
|
info.from = mes |
|
|
|
|
info.to = mes |
|
|
|
|
info.hash = mes |
|
|
|
|
this.view.querySelector('#error').innerHTML = 'Cannot find transaction with reference. Block number: ' + this.blockNumber + '. Transaction index/hash: ' + this.txNumber |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|