|
|
@ -64,28 +64,6 @@ TxBrowser.prototype.setDefaultValues = function () { |
|
|
|
|
|
|
|
|
|
|
|
TxBrowser.prototype.submit = function (tx) { |
|
|
|
TxBrowser.prototype.submit = function (tx) { |
|
|
|
this.event.trigger('requestDebug', [this.blockNumber, this.txNumber, tx]) |
|
|
|
this.event.trigger('requestDebug', [this.blockNumber, this.txNumber, tx]) |
|
|
|
|
|
|
|
|
|
|
|
// var self = this
|
|
|
|
|
|
|
|
// self.event.trigger('newTxLoading', [this.blockNumber, this.txNumber])
|
|
|
|
|
|
|
|
// if (tx) {
|
|
|
|
|
|
|
|
// return self.update(null, tx)
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// if (!this.txNumber) {
|
|
|
|
|
|
|
|
// self.update('no tx index or tx hash to look for')
|
|
|
|
|
|
|
|
// return
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// try {
|
|
|
|
|
|
|
|
// if (this.txNumber.indexOf('0x') !== -1) {
|
|
|
|
|
|
|
|
// return self.web3.eth.getTransaction(this.txNumber, function (error, result) {
|
|
|
|
|
|
|
|
// self.update(error, result)
|
|
|
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// self.web3.eth.getTransactionFromBlock(this.blockNumber, this.txNumber, function (error, result) {
|
|
|
|
|
|
|
|
// self.update(error, result)
|
|
|
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
// } catch (e) {
|
|
|
|
|
|
|
|
// self.update(e.message)
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
TxBrowser.prototype.update = function (error, tx) { |
|
|
|
TxBrowser.prototype.update = function (error, tx) { |
|
|
@ -100,7 +78,6 @@ TxBrowser.prototype.update = function (error, tx) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.view.querySelector('#error').innerHTML = '' |
|
|
|
this.view.querySelector('#error').innerHTML = '' |
|
|
|
// this.event.trigger('newTraceRequested', [this.blockNumber, this.txNumber, tx])
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
TxBrowser.prototype.updateBlockN = function (ev) { |
|
|
|
TxBrowser.prototype.updateBlockN = function (ev) { |
|
|
|