fix hardhat console

pull/5370/head
yann300 2 years ago committed by Aniket
parent eeafa385ef
commit 3f4c7fc7ee
  1. 2
      libs/remix-simulator/src/VmProxy.ts

@ -261,7 +261,7 @@ export class VmProxy {
const payloadStart = parseInt(step.stack[stackLength - 3], 16) const payloadStart = parseInt(step.stack[stackLength - 3], 16)
const memory = formatMemory(data.memory) const memory = formatMemory(data.memory)
const memoryStr = memory.join('') const memoryStr = memory.join('')
let payload = memoryStr.substring(payloadStart * 2, memory.length) let payload = memoryStr.substring(payloadStart * 2, memoryStr.length)
const fnselectorStr = payload.substring(0, 8) const fnselectorStr = payload.substring(0, 8)
const fnselectorStrInHex = '0x' + fnselectorStr const fnselectorStrInHex = '0x' + fnselectorStr
const fnselector = parseInt(fnselectorStrInHex) const fnselector = parseInt(fnselectorStrInHex)

Loading…
Cancel
Save