ensure 0x prefixed

pull/5370/head
yann300 4 years ago
parent 83c7d42be8
commit a1843b138a
  1. 2
      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')
}

Loading…
Cancel
Save