pull/1346/head
yann300 3 years ago
parent 93464327c9
commit 3d2db3b6b5
  1. 5
      libs/remix-debug/src/code/codeManager.ts
  2. 4
      libs/remix-ui/debugger-ui/src/reducers/assembly-items.ts

@ -148,8 +148,8 @@ export class CodeManager {
private async retrieveIndexAndTrigger (codeMananger, address, step, code) {
let result
let next
let returnInstructionIndexes = []
let outOfGasInstructionIndexes = []
const returnInstructionIndexes = []
const outOfGasInstructionIndexes = []
try {
result = codeMananger.getInstructionIndex(address, step)
@ -170,7 +170,6 @@ export class CodeManager {
outOfGasInstructionIndexes.push({ instructionIndex: this.getInstructionIndex(address, value.index), address })
}
}
} catch (error) {
return console.log(error)
}

@ -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)
}
}

Loading…
Cancel
Save