revert changes made on execution context

pull/1/head
Iuri Matias 6 years ago committed by yann300
parent b192a3df8c
commit 73c7301c0e
  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) { this.executionContext.event.register('contextChanged', this, function (context) {
// TODO: was already broken // TODO: was already broken
//self.switchProvider(context) // self.switchProvider(context)
}) })
this.debugger.event.register('newTraceLoaded', this, function () { this.debugger.event.register('newTraceLoaded', this, function () {

@ -37,8 +37,6 @@ class DebuggerUI {
this.registry = globalRegistry this.registry = globalRegistry
this.event = new EventManager() this.event = new EventManager()
this.setupExecutionContext()
this.transactionDebugger = new Debugger({ this.transactionDebugger = new Debugger({
executionContext: executionContext, executionContext: executionContext,
offsetToLineColumnConverter: this.registry.get('offsettolinecolumnconverter').api, offsetToLineColumnConverter: this.registry.get('offsettolinecolumnconverter').api,
@ -64,7 +62,7 @@ class DebuggerUI {
self.debugger.codeManager.resolveStep(index, self.tx) self.debugger.codeManager.resolveStep(index, self.tx)
}) })
executionContext.event.register('contextChanged', this, function () { this.executionContext.event.register('contextChanged', this, function () {
self.updateWeb3Reference() self.updateWeb3Reference()
}) })
@ -74,18 +72,6 @@ class DebuggerUI {
this.listenToEvents() 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 () { setEditor () {
const self = this const self = this
this.editor = this.registry.get('editor').api this.editor = this.registry.get('editor').api

Loading…
Cancel
Save