fix stringify the memory (from Uint8Array to hex string)

pull/5370/head
yann300 2 years ago committed by Aniket
parent d4659c0187
commit dfb40243b2
  1. 3
      libs/remix-debug/src/trace/traceCache.ts

@ -106,7 +106,8 @@ export class TraceCache {
const stack = trace[index].stack
const offset = 2 * parseInt(toHexPaddedString(stack[stack.length - 2]), 16)
const size = 2 * parseInt(toHexPaddedString(stack[stack.length - 3]), 16)
this.contractCreation[token] = '0x' + memory.join('').substr(offset, size)
const memoryHex = Buffer.from(memory).toString('hex')
this.contractCreation[token] = '0x' + memoryHex.substr(offset, size)
}
pushContractCreation (token, code) {

Loading…
Cancel
Save