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
01973bae
Commit
01973bae
authored
Sep 19, 2017
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add internalWeb3 - return the execution context web3
parent
c062cde4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
app.js
src/app.js
+2
-2
execution-context.js
src/execution-context.js
+4
-0
No files found.
src/app.js
View file @
01973bae
...
...
@@ -536,8 +536,8 @@ function run () {
}
var
transactionDebugger
=
new
Debugger
(
'#debugger'
,
debugAPI
,
editor
.
event
)
transactionDebugger
.
addProvider
(
'vm'
,
executionContext
.
vm
())
transactionDebugger
.
addProvider
(
'injected'
,
executionContext
.
w
eb3
())
transactionDebugger
.
addProvider
(
'web3'
,
executionContext
.
w
eb3
())
transactionDebugger
.
addProvider
(
'injected'
,
executionContext
.
internalW
eb3
())
transactionDebugger
.
addProvider
(
'web3'
,
executionContext
.
internalW
eb3
())
transactionDebugger
.
switchProvider
(
executionContext
.
getProvider
())
var
txLogger
=
new
TxLogger
({
...
...
src/execution-context.js
View file @
01973bae
...
...
@@ -92,6 +92,10 @@ function ExecutionContext () {
return
this
.
isVM
()
?
web3VM
:
web3
}
this
.
internalWeb3
=
function
()
{
return
web3
}
this
.
blankWeb3
=
function
()
{
return
blankWeb3
}
...
...
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