fix hardhat console

pull/3285/head^2
yann300 2 years ago committed by Aniket
parent ba747da577
commit cf40bfd7c2
  1. 2
      libs/remix-simulator/src/VmProxy.ts

@ -261,7 +261,7 @@ export class VmProxy {
const payloadStart = parseInt(step.stack[stackLength - 3], 16)
const memory = formatMemory(data.memory)
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 fnselectorStrInHex = '0x' + fnselectorStr
const fnselector = parseInt(fnselectorStrInHex)

Loading…
Cancel
Save