From 7f14c55ecb59f68368a857a7458193291eb3b6d0 Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 1 Feb 2021 15:12:37 +0100 Subject: [PATCH] Fix decoding data of PUSH (#822) fix https://github.com/ethereum/remix-project/issues/815 --- libs/remix-debug/src/code/codeUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/remix-debug/src/code/codeUtils.ts b/libs/remix-debug/src/code/codeUtils.ts index 2b438f92b6..1c0c88374a 100644 --- a/libs/remix-debug/src/code/codeUtils.ts +++ b/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 = ''