Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
08d53338
Commit
08d53338
authored
Jan 25, 2017
by
yann300
Committed by
GitHub
Jan 25, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #406 from ethereum/fixSwitchProvider
Fix provider init
parents
159aefff
cd28a1b0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
app.js
src/app.js
+1
-1
execution-context.js
src/app/execution-context.js
+4
-0
No files found.
src/app.js
View file @
08d53338
...
@@ -499,9 +499,9 @@ var run = function () {
...
@@ -499,9 +499,9 @@ var run = function () {
var
transactionDebugger
=
new
Debugger
(
'#debugger'
,
editor
,
compiler
,
executionContext
.
event
,
switchToFile
,
offsetToLineColumnConverter
)
var
transactionDebugger
=
new
Debugger
(
'#debugger'
,
editor
,
compiler
,
executionContext
.
event
,
switchToFile
,
offsetToLineColumnConverter
)
transactionDebugger
.
addProvider
(
'vm'
,
executionContext
.
vm
())
transactionDebugger
.
addProvider
(
'vm'
,
executionContext
.
vm
())
transactionDebugger
.
switchProvider
(
'vm'
)
transactionDebugger
.
addProvider
(
'injected'
,
executionContext
.
web3
())
transactionDebugger
.
addProvider
(
'injected'
,
executionContext
.
web3
())
transactionDebugger
.
addProvider
(
'web3'
,
executionContext
.
web3
())
transactionDebugger
.
addProvider
(
'web3'
,
executionContext
.
web3
())
transactionDebugger
.
switchProvider
(
executionContext
.
getProvider
())
var
udapp
=
new
UniversalDApp
(
executionContext
,
{
var
udapp
=
new
UniversalDApp
(
executionContext
,
{
removable
:
false
,
removable
:
false
,
...
...
src/app/execution-context.js
View file @
08d53338
...
@@ -71,6 +71,10 @@ function ExecutionContext () {
...
@@ -71,6 +71,10 @@ function ExecutionContext () {
this
.
event
=
new
EventManager
()
this
.
event
=
new
EventManager
()
var
executionContext
=
injectedProvider
?
'injected'
:
'vm'
var
executionContext
=
injectedProvider
?
'injected'
:
'vm'
this
.
getProvider
=
function
()
{
return
executionContext
}
this
.
isVM
=
function
()
{
this
.
isVM
=
function
()
{
return
executionContext
===
'vm'
return
executionContext
===
'vm'
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment