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
ef2034a4
Commit
ef2034a4
authored
Jun 29, 2021
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
linting
parent
8d44d31c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
codeManager.ts
libs/remix-debug/src/code/codeManager.ts
+2
-2
assembly-items.tsx
...mix-ui/debugger-ui/src/lib/vm-debugger/assembly-items.tsx
+2
-2
No files found.
libs/remix-debug/src/code/codeManager.ts
View file @
ef2034a4
...
@@ -159,7 +159,7 @@ export class CodeManager {
...
@@ -159,7 +159,7 @@ export class CodeManager {
if
(
values
)
{
if
(
values
)
{
for
(
const
value
of
values
)
{
for
(
const
value
of
values
)
{
if
(
value
.
address
===
address
)
{
if
(
value
.
address
===
address
)
{
returnInstructionIndexes
.
push
({
instructionIndex
:
this
.
getInstructionIndex
(
address
,
value
.
index
),
address
})
returnInstructionIndexes
.
push
({
instructionIndex
:
this
.
getInstructionIndex
(
address
,
value
.
index
),
address
})
}
}
}
}
}
}
...
@@ -168,7 +168,7 @@ export class CodeManager {
...
@@ -168,7 +168,7 @@ export class CodeManager {
if
(
values
)
{
if
(
values
)
{
for
(
const
value
of
values
)
{
for
(
const
value
of
values
)
{
if
(
value
.
address
===
address
)
{
if
(
value
.
address
===
address
)
{
outOfGasInstructionIndexes
.
push
({
instructionIndex
:
this
.
getInstructionIndex
(
address
,
value
.
index
),
address
})
outOfGasInstructionIndexes
.
push
({
instructionIndex
:
this
.
getInstructionIndex
(
address
,
value
.
index
),
address
})
}
}
}
}
}
}
...
...
libs/remix-ui/debugger-ui/src/lib/vm-debugger/assembly-items.tsx
View file @
ef2034a4
...
@@ -28,7 +28,7 @@ export const AssemblyItems = ({ registerEvent }) => {
...
@@ -28,7 +28,7 @@ export const AssemblyItems = ({ registerEvent }) => {
}
}
},
[
assemblyItems
.
opCodes
.
index
])
},
[
assemblyItems
.
opCodes
.
index
])
le
t
clearItem
=
(
currentItem
)
=>
{
cons
t
clearItem
=
(
currentItem
)
=>
{
if
(
currentItem
)
{
if
(
currentItem
)
{
currentItem
.
removeAttribute
(
'selected'
)
currentItem
.
removeAttribute
(
'selected'
)
currentItem
.
removeAttribute
(
'style'
)
currentItem
.
removeAttribute
(
'style'
)
...
@@ -41,7 +41,7 @@ export const AssemblyItems = ({ registerEvent }) => {
...
@@ -41,7 +41,7 @@ export const AssemblyItems = ({ registerEvent }) => {
const
clearItems
=
()
=>
{
const
clearItems
=
()
=>
{
clearItem
(
refs
.
current
[
selectedItem
]
?
refs
.
current
[
selectedItem
]
:
null
)
clearItem
(
refs
.
current
[
selectedItem
]
?
refs
.
current
[
selectedItem
]
:
null
)
clearItem
(
refs
.
current
[
nextSelectedItem
]
?
refs
.
current
[
nextSelectedItem
]
:
null
)
clearItem
(
refs
.
current
[
nextSelectedItem
]
?
refs
.
current
[
nextSelectedItem
]
:
null
)
returnInstructionIndexes
.
map
((
index
)
=>
{
returnInstructionIndexes
.
map
((
index
)
=>
{
if
(
index
<
0
)
return
if
(
index
<
0
)
return
clearItem
(
refs
.
current
[
index
]
?
refs
.
current
[
index
]
:
null
)
clearItem
(
refs
.
current
[
index
]
?
refs
.
current
[
index
]
:
null
)
...
...
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