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
a5160fc3
Commit
a5160fc3
authored
Dec 31, 2019
by
Iuri Matias
Committed by
yann300
Feb 05, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replace executionContext for debugger with blockchain object
parent
0821c23d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
app.js
src/app.js
+1
-1
debugger-tab.js
src/app/tabs/debugger-tab.js
+3
-3
debuggerUI.js
src/app/tabs/debugger/debuggerUI.js
+5
-5
No files found.
src/app.js
View file @
a5160fc3
...
@@ -306,7 +306,7 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
...
@@ -306,7 +306,7 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
mainview
mainview
)
)
const
analysis
=
new
AnalysisTab
(
registry
)
const
analysis
=
new
AnalysisTab
(
registry
)
const
debug
=
new
DebuggerTab
(
executionContext
)
const
debug
=
new
DebuggerTab
(
blockchain
)
const
test
=
new
TestTab
(
const
test
=
new
TestTab
(
registry
.
get
(
'filemanager'
).
api
,
registry
.
get
(
'filemanager'
).
api
,
filePanel
,
filePanel
,
...
...
src/app/tabs/debugger-tab.js
View file @
a5160fc3
...
@@ -21,10 +21,10 @@ const profile = {
...
@@ -21,10 +21,10 @@ const profile = {
class
DebuggerTab
extends
ViewPlugin
{
class
DebuggerTab
extends
ViewPlugin
{
constructor
(
executionContext
)
{
constructor
(
blockchain
)
{
super
(
profile
)
super
(
profile
)
this
.
el
=
null
this
.
el
=
null
this
.
executionContext
=
executionContext
this
.
blockchain
=
blockchain
}
}
render
()
{
render
()
{
...
@@ -34,7 +34,7 @@ class DebuggerTab extends ViewPlugin {
...
@@ -34,7 +34,7 @@ class DebuggerTab extends ViewPlugin {
<div class="
${
css
.
debuggerTabView
}
" id="debugView">
<div class="
${
css
.
debuggerTabView
}
" id="debugView">
<div id="debugger" class="
${
css
.
debugger
}
"></div>
<div id="debugger" class="
${
css
.
debugger
}
"></div>
</div>`
</div>`
this
.
debuggerUI
=
new
DebuggerUI
(
this
.
el
.
querySelector
(
'#debugger'
),
this
.
executionContext
)
this
.
debuggerUI
=
new
DebuggerUI
(
this
.
el
.
querySelector
(
'#debugger'
),
this
.
blockchain
)
return
this
.
el
return
this
.
el
}
}
...
...
src/app/tabs/debugger/debuggerUI.js
View file @
a5160fc3
...
@@ -30,9 +30,9 @@ var css = csjs`
...
@@ -30,9 +30,9 @@ var css = csjs`
class
DebuggerUI
{
class
DebuggerUI
{
constructor
(
container
,
executionContext
)
{
constructor
(
container
,
blockchain
)
{
this
.
registry
=
globalRegistry
this
.
registry
=
globalRegistry
this
.
executionContext
=
executionContext
this
.
blockchain
=
blockchain
this
.
event
=
new
EventManager
()
this
.
event
=
new
EventManager
()
this
.
isActive
=
false
this
.
isActive
=
false
...
@@ -105,13 +105,13 @@ class DebuggerUI {
...
@@ -105,13 +105,13 @@ class DebuggerUI {
getDebugWeb3
()
{
getDebugWeb3
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
executionContext
.
detectNetwork
((
error
,
network
)
=>
{
this
.
blockchain
.
detectNetwork
((
error
,
network
)
=>
{
let
web3
let
web3
if
(
error
||
!
network
)
{
if
(
error
||
!
network
)
{
web3
=
init
.
web3DebugNode
(
this
.
executionContext
.
web3
())
web3
=
init
.
web3DebugNode
(
this
.
blockchain
.
web3
())
}
else
{
}
else
{
const
webDebugNode
=
init
.
web3DebugNode
(
network
.
name
)
const
webDebugNode
=
init
.
web3DebugNode
(
network
.
name
)
web3
=
!
webDebugNode
?
this
.
executionContext
.
web3
()
:
webDebugNode
web3
=
!
webDebugNode
?
this
.
blockchain
.
web3
()
:
webDebugNode
}
}
init
.
extendWeb3
(
web3
)
init
.
extendWeb3
(
web3
)
resolve
(
web3
)
resolve
(
web3
)
...
...
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