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
d599f95a
Commit
d599f95a
authored
Dec 14, 2016
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
warn if compilation result not provided
parent
e426e784
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
localDecoder.js
src/solidity/localDecoder.js
+3
-0
internalCallTree.js
src/util/internalCallTree.js
+9
-1
No files found.
src/solidity/localDecoder.js
View file @
d599f95a
...
...
@@ -2,6 +2,9 @@
function
solidityLocals
(
vmtraceIndex
,
internalTreeCall
,
stack
,
memory
)
{
var
scope
=
internalTreeCall
.
findScope
(
vmtraceIndex
)
if
(
!
scope
)
{
return
{
'error'
:
'Can
\'
t display locals. reason: compilation result might not have been provided'
}
}
var
locals
=
{}
for
(
var
local
in
scope
.
locals
)
{
let
variable
=
scope
.
locals
[
local
]
...
...
src/util/internalCallTree.js
View file @
d599f95a
...
...
@@ -20,8 +20,12 @@ class InternalCallTree {
}
buildTree
(
trace
)
{
if
(
!
this
.
solidityProxy
.
loaded
())
{
console
.
log
(
'compilation result not loaded. Cannot build internal call tree'
)
}
else
{
buildTree
(
this
,
0
,
''
,
trace
)
}
}
reset
()
{
this
.
scopes
=
{}
...
...
@@ -31,7 +35,11 @@ class InternalCallTree {
}
findScope
(
vmtraceIndex
)
{
var
scopeId
=
util
.
findLowerBoundValue
(
vmtraceIndex
,
Object
.
keys
(
this
.
scopeStarts
))
var
scopes
=
Object
.
keys
(
this
.
scopeStarts
)
if
(
!
scopes
.
length
)
{
return
null
}
var
scopeId
=
util
.
findLowerBoundValue
(
vmtraceIndex
,
scopes
)
scopeId
=
this
.
scopeStarts
[
scopeId
]
var
scope
=
this
.
scopes
[
scopeId
]
var
reg
=
/
(
.
\d
|
\d)
$/
...
...
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