Commit 9b86659f authored by yann300's avatar yann300

will fix in other pr

parent d464153c
...@@ -97,7 +97,7 @@ async function buildTree (tree, step, scopeId) { ...@@ -97,7 +97,7 @@ async function buildTree (tree, step, scopeId) {
if (!sourceLocation) { if (!sourceLocation) {
return { outStep: step, error: 'InternalCallTree - No source Location. ' + step } return { outStep: step, error: 'InternalCallTree - No source Location. ' + step }
} }
if (sourceLocation.jump === 'i' || traceHelper.isCallInstruction(tree.traceManager.trace[step])) { if (sourceLocation.jump === 'i') {
try { try {
var result = await buildTree(tree, step + 1, scopeId === '' ? subScope.toString() : scopeId + '.' + subScope) var result = await buildTree(tree, step + 1, scopeId === '' ? subScope.toString() : scopeId + '.' + subScope)
if (result.error) { if (result.error) {
...@@ -109,8 +109,7 @@ async function buildTree (tree, step, scopeId) { ...@@ -109,8 +109,7 @@ async function buildTree (tree, step, scopeId) {
} catch (e) { } catch (e) {
return { outStep: step, error: 'InternalCallTree - ' + e.message } return { outStep: step, error: 'InternalCallTree - ' + e.message }
} }
} else if (sourceLocation.jump === 'o' || traceHelper.isReturnInstruction(tree.traceManager.trace[step]) || traceHelper.isStopInstruction(tree.traceManager.trace[step])) { } else if (sourceLocation.jump === 'o') {
// traceHelper.isReturnInstruction should be replaced by a more complex structure so it can handle out of gas
tree.scopes[scopeId].lastStep = step tree.scopes[scopeId].lastStep = step
return { outStep: step + 1 } return { outStep: step + 1 }
} 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