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
dffab68e
Unverified
Commit
dffab68e
authored
Sep 11, 2019
by
Aniket
Committed by
GitHub
Sep 11, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update internalCallTree.js
parent
f83b451f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
internalCallTree.js
remix-debug/src/solidity-decoder/internalCallTree.js
+2
-2
No files found.
remix-debug/src/solidity-decoder/internalCallTree.js
View file @
dffab68e
...
@@ -154,7 +154,7 @@ async function buildTree (tree, step, scopeId, isExternalCall) {
...
@@ -154,7 +154,7 @@ async function buildTree (tree, step, scopeId, isExternalCall) {
return
{
outStep
:
step
,
error
:
'InternalCallTree - No source Location. '
+
step
}
return
{
outStep
:
step
,
error
:
'InternalCallTree - No source Location. '
+
step
}
}
}
var
isCallInstruction
=
traceHelper
.
isCallInstruction
(
tree
.
traceManager
.
trace
[
step
])
var
isCallInstruction
=
traceHelper
.
isCallInstruction
(
tree
.
traceManager
.
trace
[
step
])
// we are checking if we jumping in a new CALL or in an internal function
// we are checking if we
are
jumping in a new CALL or in an internal function
if
(
isCallInstruction
||
sourceLocation
.
jump
===
'i'
)
{
if
(
isCallInstruction
||
sourceLocation
.
jump
===
'i'
)
{
try
{
try
{
var
externalCallResult
=
await
buildTree
(
tree
,
step
+
1
,
scopeId
===
''
?
subScope
.
toString
()
:
scopeId
+
'.'
+
subScope
,
isCallInstruction
)
var
externalCallResult
=
await
buildTree
(
tree
,
step
+
1
,
scopeId
===
''
?
subScope
.
toString
()
:
scopeId
+
'.'
+
subScope
,
isCallInstruction
)
...
@@ -196,7 +196,7 @@ function includeVariableDeclaration (tree, step, sourceLocation, scopeId, newLoc
...
@@ -196,7 +196,7 @@ function includeVariableDeclaration (tree, step, sourceLocation, scopeId, newLoc
// that way we know that there is a new local variable from here.
// that way we know that there is a new local variable from here.
if
(
variableDeclaration
&&
!
tree
.
scopes
[
scopeId
].
locals
[
variableDeclaration
.
attributes
.
name
])
{
if
(
variableDeclaration
&&
!
tree
.
scopes
[
scopeId
].
locals
[
variableDeclaration
.
attributes
.
name
])
{
tree
.
traceManager
.
getStackAt
(
step
,
(
error
,
stack
)
=>
{
tree
.
traceManager
.
getStackAt
(
step
,
(
error
,
stack
)
=>
{
// the stack length at this point is where the value of the new local will be stored.
// the stack length at this point is where the value of the new local
variable
will be stored.
// so, either this is the direct value, or the offset in memory. That depends on the type.
// so, either this is the direct value, or the offset in memory. That depends on the type.
if
(
!
error
)
{
if
(
!
error
)
{
tree
.
solidityProxy
.
contractNameAt
(
step
,
(
error
,
contractName
)
=>
{
// cached
tree
.
solidityProxy
.
contractNameAt
(
step
,
(
error
,
contractName
)
=>
{
// cached
...
...
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