|
|
@ -151,7 +151,7 @@ export class TraceManager { |
|
|
|
if (this.trace[stepIndex] && this.trace[stepIndex].stack) { // there's always a stack
|
|
|
|
if (this.trace[stepIndex] && this.trace[stepIndex].stack) { // there's always a stack
|
|
|
|
const stack = this.trace[stepIndex].stack.slice(0) |
|
|
|
const stack = this.trace[stepIndex].stack.slice(0) |
|
|
|
stack.reverse() |
|
|
|
stack.reverse() |
|
|
|
return stack |
|
|
|
return stack.map(el => el.startsWith('0x') ? el : '0x' + el) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
throw new Error('no stack found') |
|
|
|
throw new Error('no stack found') |
|
|
|
} |
|
|
|
} |
|
|
|