|
|
@ -29,7 +29,6 @@ class InternalCallTree { |
|
|
|
this.solidityProxy = solidityProxy |
|
|
|
this.solidityProxy = solidityProxy |
|
|
|
this.traceManager = traceManager |
|
|
|
this.traceManager = traceManager |
|
|
|
this.sourceLocationTracker = new SourceLocationTracker(codeManager) |
|
|
|
this.sourceLocationTracker = new SourceLocationTracker(codeManager) |
|
|
|
this.internalFunctionCalls = [] |
|
|
|
|
|
|
|
debuggerEvent.register('newTraceLoaded', (trace) => { |
|
|
|
debuggerEvent.register('newTraceLoaded', (trace) => { |
|
|
|
this.reset() |
|
|
|
this.reset() |
|
|
|
if (!this.solidityProxy.loaded()) { |
|
|
|
if (!this.solidityProxy.loaded()) { |
|
|
@ -158,9 +157,6 @@ async function buildTree (tree, step, scopeId, isExternalCall) { |
|
|
|
// we are checking if we are jumping in a new CALL or in an internal function
|
|
|
|
// we are checking if we are jumping in a new CALL or in an internal function
|
|
|
|
if (isCallInstruction || sourceLocation.jump === 'i') { |
|
|
|
if (isCallInstruction || sourceLocation.jump === 'i') { |
|
|
|
try { |
|
|
|
try { |
|
|
|
if (sourceLocation.jump === 'i') { |
|
|
|
|
|
|
|
this.internalFunctionCalls.push(step) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
var externalCallResult = await buildTree(tree, step + 1, scopeId === '' ? subScope.toString() : scopeId + '.' + subScope, isCallInstruction) |
|
|
|
var externalCallResult = await buildTree(tree, step + 1, scopeId === '' ? subScope.toString() : scopeId + '.' + subScope, isCallInstruction) |
|
|
|
if (externalCallResult.error) { |
|
|
|
if (externalCallResult.error) { |
|
|
|
return { outStep: step, error: 'InternalCallTree - ' + externalCallResult.error } |
|
|
|
return { outStep: step, error: 'InternalCallTree - ' + externalCallResult.error } |
|
|
|