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
2c1de8a9
Commit
2c1de8a9
authored
Sep 14, 2016
by
yann300
Committed by
GitHub
Sep 14, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #111 from yann300/fixlastChanges
fix findLowerBoundValue check
parents
b2e3799c
237b2146
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
traceManager.js
src/trace/traceManager.js
+5
-5
No files found.
src/trace/traceManager.js
View file @
2c1de8a9
...
...
@@ -81,7 +81,7 @@ TraceManager.prototype.getStorageAt = function (stepIndex, tx, callback, address
}
if
(
!
address
)
{
var
stoChange
=
util
.
findLowerBoundValue
(
stepIndex
,
this
.
traceCache
.
storageChanges
)
if
(
stoChange
===
undefined
)
return
callback
(
'no storage found'
,
null
)
if
(
stoChange
===
null
)
return
callback
(
'no storage found'
,
null
)
address
=
this
.
traceCache
.
sstore
[
stoChange
].
address
}
var
storage
=
{}
...
...
@@ -124,7 +124,7 @@ TraceManager.prototype.getCallDataAt = function (stepIndex, callback) {
return
callback
(
check
,
null
)
}
var
callDataChange
=
util
.
findLowerBoundValue
(
stepIndex
,
this
.
traceCache
.
callDataChanges
)
if
(
callDataChange
===
undefined
)
return
callback
(
'no calldata found'
,
null
)
if
(
callDataChange
===
null
)
return
callback
(
'no calldata found'
,
null
)
callback
(
null
,
[
this
.
traceCache
.
callsData
[
callDataChange
]])
}
...
...
@@ -134,7 +134,7 @@ TraceManager.prototype.getCallStackAt = function (stepIndex, callback) {
return
callback
(
check
,
null
)
}
var
callStackChange
=
util
.
findLowerBoundValue
(
stepIndex
,
this
.
traceCache
.
callChanges
)
if
(
callStackChange
===
undefined
)
return
callback
(
'no callstack found'
,
null
)
if
(
callStackChange
===
null
)
return
callback
(
'no callstack found'
,
null
)
callback
(
null
,
this
.
traceCache
.
callStack
[
callStackChange
].
callStack
)
}
...
...
@@ -159,7 +159,7 @@ TraceManager.prototype.getLastCallChangeSince = function (stepIndex, callback) {
return
callback
(
check
,
null
)
}
var
callChange
=
util
.
findLowerBoundValue
(
stepIndex
,
this
.
traceCache
.
callChanges
)
if
(
callChange
===
undefined
)
{
if
(
callChange
===
null
)
{
callback
(
null
,
0
)
}
else
{
callback
(
null
,
callChange
)
...
...
@@ -205,7 +205,7 @@ TraceManager.prototype.getMemoryAt = function (stepIndex, callback) {
return
callback
(
check
,
null
)
}
var
lastChanges
=
util
.
findLowerBoundValue
(
stepIndex
,
this
.
traceCache
.
memoryChanges
)
if
(
lastChanges
===
undefined
)
return
callback
(
'no memory found'
,
null
)
if
(
lastChanges
===
null
)
return
callback
(
'no memory found'
,
null
)
callback
(
null
,
this
.
trace
[
lastChanges
].
memory
)
}
...
...
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