mirror of
https://github.com/arnaucube/circom_tester.git
synced 2026-02-07 03:16:43 +01:00
fix check circom version
This commit is contained in:
@@ -202,7 +202,7 @@ function check_versions ( v1, v2 ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function compiler_above_version(v) {
|
async function compiler_above_version(v) {
|
||||||
let output = await exec('circom --version').toString();
|
let output = (await exec('circom --version')).stdout;
|
||||||
let compiler_version = version_to_list(output.slice(output.search(/\d/),-1));
|
let compiler_version = version_to_list(output.slice(output.search(/\d/),-1));
|
||||||
vlist = version_to_list(v);
|
vlist = version_to_list(v);
|
||||||
return check_versions ( compiler_version, vlist );
|
return check_versions ( compiler_version, vlist );
|
||||||
|
|||||||
@@ -193,7 +193,7 @@ function check_versions ( v1, v2 ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function compiler_above_version(v) {
|
async function compiler_above_version(v) {
|
||||||
let output = await exec('circom --version').toString();
|
let output = (await exec('circom --version')).stdout;
|
||||||
let compiler_version = version_to_list(output.slice(output.search(/\d/),-1));
|
let compiler_version = version_to_list(output.slice(output.search(/\d/),-1));
|
||||||
vlist = version_to_list(v);
|
vlist = version_to_list(v);
|
||||||
return check_versions ( compiler_version, vlist );
|
return check_versions ( compiler_version, vlist );
|
||||||
|
|||||||
Reference in New Issue
Block a user