From 133a88e7f5aaef09a7793930935be9f210d232c8 Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 12 Jul 2021 11:56:04 +0200 Subject: [PATCH] ensure 0x prefixed --- libs/remix-debug/src/trace/traceManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/remix-debug/src/trace/traceManager.ts b/libs/remix-debug/src/trace/traceManager.ts index 848b3c57aa..f4bf488392 100644 --- a/libs/remix-debug/src/trace/traceManager.ts +++ b/libs/remix-debug/src/trace/traceManager.ts @@ -151,7 +151,7 @@ export class TraceManager { if (this.trace[stepIndex] && this.trace[stepIndex].stack) { // there's always a stack const stack = this.trace[stepIndex].stack.slice(0) stack.reverse() - return stack + return stack.map(el => el.startsWith('0x') ? el : '0x' + el) } else { throw new Error('no stack found') }