Commit 5f3ffaa3 authored by chriseth's avatar chriseth Committed by GitHub

Merge pull request #210 from ethereum/fixInternalTree

Fix internal call tree
parents 61b50aa7 21b5083b
...@@ -136,10 +136,7 @@ async function buildTree (tree, step, scopeId) { ...@@ -136,10 +136,7 @@ async function buildTree (tree, step, scopeId) {
if (traceHelper.isCallInstruction(tree.traceManager.trace[step]) || if (traceHelper.isCallInstruction(tree.traceManager.trace[step]) ||
sourceLocation.jump === 'i') { sourceLocation.jump === 'i') {
try { try {
if (sourceLocation.jump === 'i') { var externalCallResult = await buildTree(tree, step + 1, scopeId === '' ? subScope.toString() : scopeId + '.' + subScope)
step++
}
var externalCallResult = await buildTree(tree, step, scopeId === '' ? subScope.toString() : scopeId + '.' + subScope)
if (externalCallResult.error) { if (externalCallResult.error) {
return { outStep: step, error: 'InternalCallTree - ' + externalCallResult.error } return { outStep: step, error: 'InternalCallTree - ' + externalCallResult.error }
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment