From 73c7301c0e58d3b1532ca0a901592ccc6435f1f9 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Tue, 2 Oct 2018 17:21:32 -0400 Subject: [PATCH] revert changes made on execution context --- src/app/debugger/debugger.js | 2 +- src/app/debugger/debuggerUI.js | 16 +--------------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/src/app/debugger/debugger.js b/src/app/debugger/debugger.js index 769dc50437..ca0acaf107 100644 --- a/src/app/debugger/debugger.js +++ b/src/app/debugger/debugger.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 () { diff --git a/src/app/debugger/debuggerUI.js b/src/app/debugger/debuggerUI.js index 95abbb77a0..9d0d80ec10 100644 --- a/src/app/debugger/debuggerUI.js +++ b/src/app/debugger/debuggerUI.js @@ -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