From 3b27f7bbe795eb36162aeb5405728232cd1c320f Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 2 Jan 2023 14:46:51 +0100 Subject: [PATCH] duplicate format memory --- 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 89896fb2e8..86ff77f18b 100644 --- a/libs/remix-simulator/src/VmProxy.ts +++ b/libs/remix-simulator/src/VmProxy.ts @@ -254,7 +254,7 @@ export class VmProxy { if (step.op === 'STATICCALL' && step.stack[step.stack.length - 2] === '0x000000000000000000000000000000000000000000636f6e736f6c652e6c6f67') { const stackLength = step.stack.length const payloadStart = parseInt(step.stack[stackLength - 3], 16) - const memory = formatMemory(data.memory) + const memory = step.memory || formatMemory(data.memory) const memoryStr = memory.join('') let payload = memoryStr.substring(payloadStart * 2, memory.length) const fnselectorStr = payload.substring(0, 8)