fix updating web reference

pull/1/head
yann300 6 years ago
parent 04e8a91746
commit 961561b0cd
  1. 8
      src/app/debugger/remix-debugger/src/ui/EthdebuggerUI.js
  2. 2
      src/app/debugger/remix-debugger/src/ui/TxBrowser.js

@ -43,11 +43,7 @@ function EthdebuggerUI (opts) {
self.updateWeb3Reference()
})
setTimeout(function () {
self.updateWeb3Reference()
}, 10000)
this.txBrowser = new TxBrowser(this, {displayConnectionSetting: false})
this.txBrowser = new TxBrowser(this, {displayConnectionSetting: false, web3: executionContext.web3()})
this.txBrowser.event.register('newTxLoading', this, function () {
self.unLoad()
})
@ -69,7 +65,7 @@ EthdebuggerUI.prototype.get_web3 = function () {
EthdebuggerUI.prototype.updateWeb3Reference = function () {
if (!this.txBrowser) return
this.txBrowser.web3 = this.debugger.web3
this.txBrowser.web3 = executionContext.web3()
}
EthdebuggerUI.prototype.setCompilationResult = function (compilationResult) {

@ -53,7 +53,7 @@ function TxBrowser (_parent, opts) {
this.txNumber
this.view
this.displayConnectionSetting = opts.displayConnectionSetting
this.web3 = _parent.debugger.web3
this.web3 = opts.web3
var self = this
_parent.event.register('providerChanged', this, function (provider) {
self.setDefaultValues()

Loading…
Cancel
Save