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
a12b93bc
Commit
a12b93bc
authored
Jun 24, 2021
by
yann300
Committed by
joseph izang
Aug 09, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
linting
parent
546736cd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
10 deletions
+9
-10
codeManager.ts
libs/remix-debug/src/code/codeManager.ts
+5
-6
traceAnalyser.ts
libs/remix-debug/src/trace/traceAnalyser.ts
+2
-2
assembly-items.ts
libs/remix-ui/debugger-ui/src/reducers/assembly-items.ts
+2
-2
No files found.
libs/remix-debug/src/code/codeManager.ts
View file @
a12b93bc
...
...
@@ -148,8 +148,8 @@ export class CodeManager {
private
async
retrieveIndexAndTrigger
(
codeMananger
,
address
,
step
,
code
)
{
let
result
let
next
le
t
returnInstructionIndexes
=
[]
le
t
outOfGasInstructionIndexes
=
[]
cons
t
returnInstructionIndexes
=
[]
cons
t
outOfGasInstructionIndexes
=
[]
try
{
result
=
codeMananger
.
getInstructionIndex
(
address
,
step
)
...
...
@@ -170,10 +170,9 @@ export class CodeManager {
outOfGasInstructionIndexes
.
push
({
instructionIndex
:
this
.
getInstructionIndex
(
address
,
value
.
index
),
address
})
}
}
}
catch
(
error
)
{
return
console
.
log
(
error
)
}
}
catch
(
error
)
{
return
console
.
log
(
error
)
}
try
{
codeMananger
.
event
.
trigger
(
'changed'
,
[
code
,
address
,
result
,
next
,
returnInstructionIndexes
,
outOfGasInstructionIndexes
])
}
catch
(
e
)
{
...
...
libs/remix-debug/src/trace/traceAnalyser.ts
View file @
a12b93bc
...
...
@@ -52,14 +52,14 @@ export class TraceAnalyser {
if
(
traceHelper
.
isReturnInstruction
(
step
)
||
traceHelper
.
isStopInstruction
(
step
)
||
traceHelper
.
isRevertInstruction
(
step
))
{
this
.
traceCache
.
pushStopIndex
(
index
,
this
.
traceCache
.
currentCall
.
call
.
address
)
}
try
{
if
(
parseInt
(
step
.
gas
)
-
parseInt
(
step
.
gasCost
)
<=
0
||
step
.
error
===
'OutOfGas'
)
{
this
.
traceCache
.
pushOutOfGasIndex
(
index
,
this
.
traceCache
.
currentCall
.
call
.
address
)
}
}
catch
(
e
)
{
console
.
error
(
e
)
}
}
}
buildCalldata
(
index
,
step
,
tx
,
newContext
)
{
...
...
libs/remix-ui/debugger-ui/src/reducers/assembly-items.ts
View file @
a12b93bc
...
...
@@ -32,8 +32,8 @@ const reducedOpcode = (opCodes, payload) => {
index
:
opCodes
.
index
-
bottom
,
nextIndex
:
opCodes
.
nextIndex
-
bottom
,
display
:
opCodes
.
code
.
slice
(
bottom
,
top
),
returnInstructionIndexes
:
payload
.
returnInstructionIndexes
.
map
((
index
)
=>
index
.
instructionIndex
-
bottom
),
outOfGasInstructionIndexes
:
payload
.
outOfGasInstructionIndexes
.
map
((
index
)
=>
index
.
instructionIndex
-
bottom
)
returnInstructionIndexes
:
payload
.
returnInstructionIndexes
.
map
((
index
)
=>
index
.
instructionIndex
-
bottom
),
outOfGasInstructionIndexes
:
payload
.
outOfGasInstructionIndexes
.
map
((
index
)
=>
index
.
instructionIndex
-
bottom
)
}
}
...
...
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