Skip to content

Commit 9561130

Browse files
chore(blockifier_test_utils): split functions between tag and version string
1 parent 82a401c commit 9561130

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

crates/blockifier_test_utils/src/cairo_compile.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,18 @@ pub enum CompilationArtifacts {
1818
Cairo1 { casm: Vec<u8>, sierra: Vec<u8> },
1919
}
2020

21-
pub fn cairo1_compiler_tag() -> String {
21+
fn cairo1_compiler_version_for_feature_contracts() -> String {
2222
// TODO(lior): Uncomment the following line it and remove the rest of the code, once the
2323
// Cairo compiler version is updated to 2.11.0 in the toml file.
2424
// If the compiler version is updated in the toml to a version < 2.11.0,
2525
// only update the version in the assert below.
26-
// format!("v{}", cairo1_compiler_version())
26+
// cairo1_compiler_version()
2727
assert_eq!(cairo1_compiler_version(), "=2.10.0", "Unsupported compiler version.");
28-
"v2.11.0-dev.2".into()
28+
"2.11.0-dev.2".into()
29+
}
30+
31+
pub fn cairo1_compiler_tag() -> String {
32+
format!("v{}", cairo1_compiler_version_for_feature_contracts())
2933
}
3034

3135
/// Returns the path to the local Cairo1 compiler repository.

0 commit comments

Comments
 (0)