|
|
@ -29,11 +29,11 @@ class InternalCallTree { |
|
|
|
debuggerEvent.register('newTraceLoaded', (trace) => { |
|
|
|
debuggerEvent.register('newTraceLoaded', (trace) => { |
|
|
|
this.reset() |
|
|
|
this.reset() |
|
|
|
if (!this.solidityProxy.loaded()) { |
|
|
|
if (!this.solidityProxy.loaded()) { |
|
|
|
console.log('compilation result not loaded. Cannot build internal call tree') |
|
|
|
this.event.trigger('callTreeBuildFailed', ['compilation result not loaded. Cannot build internal call tree']) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
buildTree(this, 0, '').then((result) => { |
|
|
|
buildTree(this, 0, '').then((result) => { |
|
|
|
if (result.error) { |
|
|
|
if (result.error) { |
|
|
|
this.event.trigger('callTreeBuildFailed', [result]) |
|
|
|
this.event.trigger('callTreeBuildFailed', [result.error]) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
console.log('ready') |
|
|
|
console.log('ready') |
|
|
|
this.event.trigger('callTreeReady', [this.scopes, this.scopeStarts]) |
|
|
|
this.event.trigger('callTreeReady', [this.scopes, this.scopeStarts]) |
|
|
|