Fix decoding data of PUSH (#822)

fix https://github.com/ethereum/remix-project/issues/815
pull/5370/head
yann300 4 years ago committed by GitHub
parent 6602f6f4c1
commit 7f14c55ecb
  1. 2
      libs/remix-debug/src/code/codeUtils.ts

@ -17,7 +17,7 @@ export function nameOpCodes (raw) {
i += jumpNum
}
const data = pushData.toString() !== '' ? ' ' + pushData.toString() : ''
const data = (pushData as any).toString('hex') !== '' ? ' ' + (pushData as any).toString('hex') : ''
code.push(this.pad(pc, this.roundLog(raw.length, 10)) + ' ' + curOpCode + data)
pushData = ''

Loading…
Cancel
Save