Skip to content

Commit

Permalink
revert comment deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
roeezolantz committed Sep 17, 2024
1 parent 089cda5 commit 0abcb8b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion solgen/contracts_parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ async function analyzeGoFile(
if (solgenBooleanMathOp.test(trimmedLine)) {
isBooleanMathOp = true;
}

const match = trimmedLine.match(solgenVerifiedOperands);
if (match) {
verifiedOperandsCount = parseInt(match[1], 10);
Expand All @@ -86,6 +85,8 @@ async function analyzeGoFile(
braceDepth += (trimmedLine.match(/\{/g) || []).length;
braceDepth -= (trimmedLine.match(/}/g) || []).length;

//console.log(`brace depth: ${braceDepth}`)
// Check if we've exited the high-level function
if (braceDepth === 0) {
isInsideHighLevelFunction = false;

Expand Down

0 comments on commit 0abcb8b

Please sign in to comment.