|
|
@ -42,17 +42,16 @@ var css = csjs` |
|
|
|
margin-bottom: 10px; |
|
|
|
margin-bottom: 10px; |
|
|
|
} |
|
|
|
} |
|
|
|
` |
|
|
|
` |
|
|
|
function TxBrowser (_parent) { |
|
|
|
function TxBrowser (_parent, opts) { |
|
|
|
this.event = new EventManager() |
|
|
|
this.event = new EventManager() |
|
|
|
|
|
|
|
|
|
|
|
this.blockNumber |
|
|
|
this.blockNumber |
|
|
|
this.txNumber |
|
|
|
this.txNumber |
|
|
|
this.view |
|
|
|
this.view |
|
|
|
this.displayConnectionSetting = true |
|
|
|
this.displayConnectionSetting = opts.displayConnectionSetting |
|
|
|
this.web3 = _parent.debugger.web3 |
|
|
|
this.web3 = _parent.debugger.web3 |
|
|
|
var self = this |
|
|
|
var self = this |
|
|
|
_parent.event.register('providerChanged', this, function (provider) { |
|
|
|
_parent.event.register('providerChanged', this, function (provider) { |
|
|
|
self.displayConnectionSetting = provider === 'INTERNAL' |
|
|
|
|
|
|
|
self.setDefaultValues() |
|
|
|
self.setDefaultValues() |
|
|
|
if (self.view) { |
|
|
|
if (self.view) { |
|
|
|
yo.update(self.view, self.render()) |
|
|
|
yo.update(self.view, self.render()) |
|
|
|