diff --git a/libs/remix-simulator/src/VmProxy.ts b/libs/remix-simulator/src/VmProxy.ts index f4a29c23e2..24321bfad0 100644 --- a/libs/remix-simulator/src/VmProxy.ts +++ b/libs/remix-simulator/src/VmProxy.ts @@ -306,7 +306,7 @@ export class VmProxy { } } if (previousOpcode && previousOpcode.op === 'SHA3') { - const preimage = this.getSha3Input(previousOpcode.stack, this.lastMemoryUpdate) + const preimage = this.getSha3Input(previousOpcode.stack, formatMemory(this.lastMemoryUpdate)) const imageHash = step.stack[step.stack.length - 1].replace('0x', '') this.sha3Preimages[imageHash] = { preimage: preimage