diff --git a/circom/Cargo.toml b/circom/Cargo.toml index 7b9d9f2c9..27d1ef2a1 100644 --- a/circom/Cargo.toml +++ b/circom/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "circom" -version = "2.0.5" +version = "2.0.6" authors = ["Costa Group UCM & iden3"] edition = "2021" diff --git a/parser/src/lib.rs b/parser/src/lib.rs index 438cd2c8a..fa6458a89 100644 --- a/parser/src/lib.rs +++ b/parser/src/lib.rs @@ -114,8 +114,8 @@ fn check_number_version( use errors::{CompilerVersionError, NoCompilerVersionWarning}; if let Some(required_version) = version_file { if required_version.0 == version_compiler.0 - && required_version.1 == version_compiler.1 - && required_version.2 <= version_compiler.2 { + && (required_version.1 < version_compiler.1 || + (required_version.1 == version_compiler.1 && required_version.2 <= version_compiler.2)) { Ok(vec![]) } else { let report = CompilerVersionError::produce_report(