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
7feb9edb
Commit
7feb9edb
authored
Jul 24, 2020
by
Iuri Matias
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor extractSourceLocation
parent
5ae4763b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
12 deletions
+4
-12
internalCallTree.js
libs/remix-debug/src/solidity-decoder/internalCallTree.js
+4
-12
No files found.
libs/remix-debug/src/solidity-decoder/internalCallTree.js
View file @
7feb9edb
...
@@ -124,23 +124,15 @@ class InternalCallTree {
...
@@ -124,23 +124,15 @@ class InternalCallTree {
return
functions
return
functions
}
}
extractSourceLocation
(
step
)
{
async
extractSourceLocation
(
step
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
try
{
try
{
const
address
=
this
.
traceManager
.
getCurrentCalledAddressAt
(
step
)
const
address
=
this
.
traceManager
.
getCurrentCalledAddressAt
(
step
)
try
{
const
location
=
await
this
.
sourceLocationTracker
.
getSourceLocationFromVMTraceIndex
(
address
,
step
,
this
.
solidityProxy
.
contracts
)
this
.
sourceLocationTracker
.
getSourceLocationFromVMTraceIndex
(
address
,
step
,
this
.
solidityProxy
.
contracts
).
then
(
resolve
).
catch
((
error
)
=>
{
return
location
return
reject
(
'InternalCallTree - Cannot retrieve sourcelocation for step '
+
step
+
' '
+
error
)
})
}
catch
(
error
)
{
return
reject
(
'InternalCallTree - Cannot retrieve address for step '
+
step
+
' '
+
error
)
}
}
catch
(
error
)
{
}
catch
(
error
)
{
return
reject
(
'InternalCallTree - Cannot retrieve address
for step '
+
step
+
' '
+
error
)
throw
new
Error
(
'InternalCallTree - Cannot retrieve sourcelocation
for step '
+
step
+
' '
+
error
)
}
}
})
}
}
}
}
async
function
buildTree
(
tree
,
step
,
scopeId
,
isExternalCall
)
{
async
function
buildTree
(
tree
,
step
,
scopeId
,
isExternalCall
)
{
...
...
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