From 01973bae4dd9767e40815581f77f39b88f769ded Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 19 Sep 2017 15:47:32 +0200 Subject: [PATCH] add internalWeb3 - return the execution context web3 --- src/app.js | 4 ++-- src/execution-context.js | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) 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 }