Commit 73c7301c authored by Iuri Matias's avatar Iuri Matias Committed by yann300

revert changes made on execution context

parent b192a3df
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment