fix previousOpcode ref test

pull/3285/head^2
yann300 2 years ago committed by Aniket
parent bfa212eb90
commit ba747da577
  1. 2
      libs/remix-simulator/src/VmProxy.ts

@ -250,7 +250,7 @@ export class VmProxy {
depth: depth
}
if (previousOpcode.op === 'CALLDATACOPY' || previousOpcode.op === 'CODECOPY' || previousOpcode.op === 'EXTCODECOPY' || previousOpcode.op === 'RETURNDATACOPY' || previousOpcode.op === 'MSTORE' || previousOpcode.op === 'MSTORE8') {
if (previousOpcode && (previousOpcode.op === 'CALLDATACOPY' || previousOpcode.op === 'CODECOPY' || previousOpcode.op === 'EXTCODECOPY' || previousOpcode.op === 'RETURNDATACOPY' || previousOpcode.op === 'MSTORE' || previousOpcode.op === 'MSTORE8')) {
step.memory = data.memory
this.lastMemoryUpdate = step.memory
}

Loading…
Cancel
Save