From 404b69d3e85bae6d9e70c2874c9ce15068efd120 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Sat, 10 Sep 2016 15:03:02 +0100 Subject: [PATCH] Fix execution context change (Web3 & RPC) --- src/app/execution-context.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/execution-context.js b/src/app/execution-context.js index 9a2caae02d..fb396164b5 100644 --- a/src/app/execution-context.js +++ b/src/app/execution-context.js @@ -80,12 +80,15 @@ function ExecutionContext () { setExecutionContextRadio(); } else { if (context === 'web3') { + executionContext = context; setProviderFromEndpoint(); self.event.trigger('contextChanged', ['web3']); } else if (context === 'injected') { + executionContext = context; web3.setProvider(injectedProvider); self.event.trigger('contextChanged', ['injected']); } else if (context === 'vm') { + executionContext = context; vm.stateManager.revert(function () { vm.stateManager.checkpoint(); });