pull/3068/head
yann300 2 years ago
parent ad152b8c9a
commit 5589f1bf51
  1. 2
      libs/remix-debug/src/solidity-decoder/internalCallTree.ts

@ -316,7 +316,7 @@ async function buildTree (tree, step, scopeId, isCreation, functionDefinition?,
tree.scopeStarts[step] = newScopeId
tree.scopes[newScopeId] = { firstStep: step, locals: {}, isCreation, gasCost: 0 }
// for the ctor we we are at the start of its trace, we have to replay this step in order to catch all the locals:
let nextStep = constructorExecutionStarts ? step : step + 1
const nextStep = constructorExecutionStarts ? step : step + 1
if (constructorExecutionStarts) {
tree.constructorsStartExecution[tree.pendingConstructorId] = tree.pendingConstructorExecutionAt
tree.pendingConstructorExecutionAt = -1

Loading…
Cancel
Save