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
459e045e
Commit
459e045e
authored
Jul 05, 2020
by
Iuri Matias
Committed by
aniket-engg
Aug 25, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor getSourceLocationFromVMTraceIndex to a promise
parent
0f4f699d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
internalCallTree.js
libs/remix-debug/src/solidity-decoder/internalCallTree.js
+11
-10
No files found.
libs/remix-debug/src/solidity-decoder/internalCallTree.js
View file @
459e045e
...
...
@@ -126,18 +126,19 @@ class InternalCallTree {
extractSourceLocation
(
step
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
try
{
const
address
=
this
.
traceManager
.
getCurrentCalledAddressAt
(
step
)
try
{
this
.
sourceLocationTracker
.
getSourceLocationFromVMTraceIndex
(
address
,
step
,
this
.
solidityProxy
.
contracts
).
then
(
resolve
).
catch
((
error
)
=>
{
return
reject
(
'InternalCallTree - Cannot retrieve sourcelocation for step '
+
step
+
' '
+
error
)
})
}
catch
(
error
)
{
this
.
traceManager
.
getCurrentCalledAddressAt
(
step
,
(
error
,
address
)
=>
{
if
(
!
error
)
{
try
{
this
.
sourceLocationTracker
.
getSourceLocationFromVMTraceIndex
(
address
,
step
,
this
.
solidityProxy
.
contracts
).
then
(
resolve
).
catch
((
error
)
=>
{
return
reject
(
'InternalCallTree - Cannot retrieve sourcelocation for step '
+
step
+
' '
+
error
)
})
}
catch
(
error
)
{
return
reject
(
'InternalCallTree - Cannot retrieve address for step '
+
step
+
' '
+
error
)
}
}
else
{
return
reject
(
'InternalCallTree - Cannot retrieve address for step '
+
step
+
' '
+
error
)
}
}
catch
(
error
)
{
return
reject
(
'InternalCallTree - Cannot retrieve address for step '
+
step
+
' '
+
error
)
}
})
})
}
...
...
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