diff --git a/src/app.js b/src/app.js index 8ec7533a48..c8c2e9bd90 100644 --- a/src/app.js +++ b/src/app.js @@ -536,8 +536,8 @@ function run () { } var transactionDebugger = new Debugger('#debugger', debugAPI, editor.event) transactionDebugger.addProvider('vm', executionContext.vm()) - transactionDebugger.addProvider('injected', executionContext.web3()) - transactionDebugger.addProvider('web3', executionContext.web3()) + transactionDebugger.addProvider('injected', executionContext.internalWeb3()) + transactionDebugger.addProvider('web3', executionContext.internalWeb3()) transactionDebugger.switchProvider(executionContext.getProvider()) var txLogger = new TxLogger({ diff --git a/src/execution-context.js b/src/execution-context.js index db004bdd0d..b150ac8714 100644 --- a/src/execution-context.js +++ b/src/execution-context.js @@ -92,6 +92,10 @@ function ExecutionContext () { return this.isVM() ? web3VM : web3 } + this.internalWeb3 = function () { + return web3 + } + this.blankWeb3 = function () { return blankWeb3 }