Skip to content

Commit

Permalink
fix: revert no_index change
Browse files Browse the repository at this point in the history
  • Loading branch information
petscheit committed Dec 18, 2024
1 parent aa3f285 commit ebbe575
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions hydra/garaga/modulo_circuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -1512,8 +1512,7 @@ def compile_circuit_cairo_1(

if curve_index is not None:
code += f"""
let modulus = TryInto::<_, CircuitModulus>::try_into([{','.join([hex(limb) for limb in bigint_split(self.field.p, N_LIMBS, BASE)])}])
.unwrap(); // {CurveID(self.curve_id).name} prime field modulus
let modulus = get_{CurveID(self.curve_id).name}_modulus(); // {CurveID(self.curve_id).name} prime field modulus
"""
else:
code += """
Expand Down

0 comments on commit ebbe575

Please sign in to comment.