create-izi-noir 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -341,9 +341,10 @@ import { IziNoir, Provider, AcornParser, generateNoir, type CircuitFunction } fr
|
|
|
341
341
|
${imports}
|
|
342
342
|
|
|
343
343
|
// Helper to convert JS circuit function to Noir code
|
|
344
|
-
|
|
344
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
345
|
+
function toNoir(circuitFn: any): string {
|
|
345
346
|
const parser = new AcornParser();
|
|
346
|
-
const parsed = parser.parse(circuitFn, [], []);
|
|
347
|
+
const parsed = parser.parse(circuitFn as CircuitFunction, [], []);
|
|
347
348
|
return generateNoir(parsed);
|
|
348
349
|
}
|
|
349
350
|
|