Commit cd28a1b0 authored by yann300's avatar yann300

fix provider init

parent 159aefff
......@@ -499,9 +499,9 @@ var run = function () {
var transactionDebugger = new Debugger('#debugger', editor, compiler, executionContext.event, switchToFile, offsetToLineColumnConverter)
transactionDebugger.addProvider('vm', executionContext.vm())
transactionDebugger.switchProvider('vm')
transactionDebugger.addProvider('injected', executionContext.web3())
transactionDebugger.addProvider('web3', executionContext.web3())
transactionDebugger.switchProvider(executionContext.getProvider())
var udapp = new UniversalDApp(executionContext, {
removable: false,
......
......@@ -71,6 +71,10 @@ function ExecutionContext () {
this.event = new EventManager()
var executionContext = injectedProvider ? 'injected' : 'vm'
this.getProvider = function () {
return executionContext
}
this.isVM = function () {
return executionContext === 'vm'
}
......
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