From 3bc524d2d3d1047b38f1ac2b661db1ee3e6f47c9 Mon Sep 17 00:00:00 2001 From: yann300 Date: Fri, 2 Mar 2018 13:12:35 +0100 Subject: [PATCH] fix decode local variable --- remix-solidity/src/decoder/internalCallTree.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/remix-solidity/src/decoder/internalCallTree.js b/remix-solidity/src/decoder/internalCallTree.js index 2e5218f1ac..254affce07 100644 --- a/remix-solidity/src/decoder/internalCallTree.js +++ b/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