fix decode local variable

pull/3094/head
yann300 7 years ago
parent af638527b9
commit 3bc524d2d3
  1. 2
      remix-solidity/src/decoder/internalCallTree.js

@ -200,7 +200,7 @@ function includeVariableDeclaration (tree, step, sourceLocation, scopeId, newLoc
})
}
var functionDefinition = resolveFunctionDefinition(tree, step, previousSourceLocation)
if (functionDefinition && ((newLocation && traceHelper.isJumpDestInstruction(tree.traceManager.trace[step - 1])) || functionDefinition.attributes.isConstructor)) {
if (functionDefinition && newLocation && traceHelper.isJumpDestInstruction(tree.traceManager.trace[step - 1])) {
tree.functionCallStack.push(step)
// means: the previous location was a function definition && JUMPDEST
// => we are at the beginning of the function and input/output are setup

Loading…
Cancel
Save