fix decoding preimage

pull/5370/head
yann300 2 years ago committed by Aniket
parent 3f4c7fc7ee
commit 5b7f8c7c7f
  1. 2
      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

Loading…
Cancel
Save