pull/5370/head
yann300 3 years ago committed by joseph izang
parent 3a610207bb
commit 9b4d9b60c5
  1. 4
      libs/remix-debug/src/code/codeManager.ts
  2. 4
      libs/remix-ui/debugger-ui/src/lib/vm-debugger/assembly-items.tsx

@ -159,7 +159,7 @@ export class CodeManager {
if (values) {
for (const value of values) {
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 {
if (values) {
for (const value of values) {
if (value.address === address) {
outOfGasInstructionIndexes.push({ instructionIndex: this.getInstructionIndex(address, value.index), address })
outOfGasInstructionIndexes.push({ instructionIndex: this.getInstructionIndex(address, value.index), address })
}
}
}

@ -28,7 +28,7 @@ export const AssemblyItems = ({ registerEvent }) => {
}
}, [assemblyItems.opCodes.index])
let clearItem = (currentItem) => {
const clearItem = (currentItem) => {
if (currentItem) {
currentItem.removeAttribute('selected')
currentItem.removeAttribute('style')
@ -41,7 +41,7 @@ export const AssemblyItems = ({ registerEvent }) => {
const clearItems = () => {
clearItem(refs.current[selectedItem] ? refs.current[selectedItem] : null)
clearItem(refs.current[nextSelectedItem] ? refs.current[nextSelectedItem] : null)
returnInstructionIndexes.map((index) => {
if (index < 0) return
clearItem(refs.current[index] ? refs.current[index] : null)

Loading…
Cancel
Save