mirror of
https://github.com/arnaucube/circom_tester.git
synced 2026-02-07 11:26:41 +01:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
15ddd2a0be | ||
|
|
020cb4d510 |
@@ -46,7 +46,9 @@ async function compile (baseName, fileName, options) {
|
||||
if (options.r1cs) flags += "--r1cs ";
|
||||
if (options.json) flags += "--json ";
|
||||
if (options.output) flags += "--output " + options.output + " ";
|
||||
|
||||
if (options.O === 0) flags += "--O0 "
|
||||
if (options.O === 1) flags += "--O1 "
|
||||
|
||||
b = await exec("circom " + flags + fileName);
|
||||
assert(b.stderr == "",
|
||||
"circom compiler error \n" + b.stderr);
|
||||
|
||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "circom_tester",
|
||||
"version": "0.0.6",
|
||||
"version": "0.0.7",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "circom_tester",
|
||||
"version": "0.0.6",
|
||||
"version": "0.0.7",
|
||||
"license": "GPL-3.0",
|
||||
"dependencies": {
|
||||
"chai": "^4.3.4",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "circom_tester",
|
||||
"version": "0.0.6",
|
||||
"version": "0.0.7",
|
||||
"description": "Tools for testing circom circuits.",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
||||
@@ -51,7 +51,9 @@ async function compile (fileName, options) {
|
||||
if (options.r1cs) flags += "--r1cs ";
|
||||
if (options.json) flags += "--json ";
|
||||
if (options.output) flags += "--output " + options.output + " ";
|
||||
|
||||
if (options.O === 0) flags += "--O0 "
|
||||
if (options.O === 1) flags += "--O1 "
|
||||
|
||||
b = await exec("circom " + flags + fileName);
|
||||
assert(b.stderr == "",
|
||||
"circom compiler error \n" + b.stderr);
|
||||
|
||||
Reference in New Issue
Block a user