From 3a9142e70d23f1bbae5714d71025890add0f96d5 Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 19 Apr 2023 11:04:42 +0200 Subject: [PATCH] copy memory array --- libs/remix-simulator/src/VmProxy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/remix-simulator/src/VmProxy.ts b/libs/remix-simulator/src/VmProxy.ts index 26f71ca993..a0005f8fa2 100644 --- a/libs/remix-simulator/src/VmProxy.ts +++ b/libs/remix-simulator/src/VmProxy.ts @@ -254,7 +254,7 @@ export class VmProxy { step.stack.length = Object.keys(data.stack).length if (previousOpcode && (previousOpcode.op === 'CALLDATACOPY' || previousOpcode.op === 'CODECOPY' || previousOpcode.op === 'EXTCODECOPY' || previousOpcode.op === 'RETURNDATACOPY' || previousOpcode.op === 'MSTORE' || previousOpcode.op === 'MSTORE8')) { - step.memory = data.memory + step.memory = new Uint8Array(data.memory) this.lastMemoryUpdate = step.memory } this.vmTraces[this.processingHash].structLogs.push(step)