revert changes made on execution context

pull/3094/head
Iuri Matias 6 years ago committed by yann300
parent b5a352f17a
commit 8214270394
  1. 2
      src/app/debugger/debugger.js
  2. 16
      src/app/debugger/debuggerUI.js

@ -37,7 +37,7 @@ function Debugger (options) {
this.executionContext.event.register('contextChanged', this, function (context) {
// TODO: was already broken
//self.switchProvider(context)
// self.switchProvider(context)
})
this.debugger.event.register('newTraceLoaded', this, function () {

@ -37,8 +37,6 @@ class DebuggerUI {
this.registry = globalRegistry
this.event = new EventManager()
this.setupExecutionContext()
this.transactionDebugger = new Debugger({
executionContext: executionContext,
offsetToLineColumnConverter: this.registry.get('offsettolinecolumnconverter').api,
@ -64,7 +62,7 @@ class DebuggerUI {
self.debugger.codeManager.resolveStep(index, self.tx)
})
executionContext.event.register('contextChanged', this, function () {
this.executionContext.event.register('contextChanged', this, function () {
self.updateWeb3Reference()
})
@ -74,18 +72,6 @@ class DebuggerUI {
this.listenToEvents()
}
setupExecutionContext () {
this.executionContext.event.register('contextChanged', this, function (context) {
// TODO: was already broken
//self.switchProvider(context)
})
this.debugger.addProvider('vm', this.executionContext.vm())
this.debugger.addProvider('injected', this.executionContext.internalWeb3())
this.debugger.addProvider('web3', this.executionContext.internalWeb3())
this.debugger.switchProvider(this.executionContext.getProvider())
}
setEditor () {
const self = this
this.editor = this.registry.get('editor').api

Loading…
Cancel
Save