Skip to content

Conversation

@VolodymyrBg
Copy link

Problem

gen_circom_template was missing closing brace } when gen_substrs=false,
generating invalid circom files for CLI commands.

Root Cause

  • gen_circom_allstr() doesn't include closing brace
  • add_substrs_constraints() adds the closing brace
  • When gen_substrs=false, only gen_circom_allstr() output was written

Solution

Added else block to write closing brace } when substrings are not generated.

Impact

  • Fixes CLI commands with gen_substrs=false
  • No impact on existing functionality
  • All generated circom files now have valid syntax

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant