From 956113032eb3038f6f485639ef9e5c0072a6a375 Mon Sep 17 00:00:00 2001 From: Dori Medini Date: Fri, 4 Apr 2025 22:54:53 +0300 Subject: [PATCH] chore(blockifier_test_utils): split functions between tag and version string --- crates/blockifier_test_utils/src/cairo_compile.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/crates/blockifier_test_utils/src/cairo_compile.rs b/crates/blockifier_test_utils/src/cairo_compile.rs index f61fbe27236..3780d7c5241 100644 --- a/crates/blockifier_test_utils/src/cairo_compile.rs +++ b/crates/blockifier_test_utils/src/cairo_compile.rs @@ -18,14 +18,18 @@ pub enum CompilationArtifacts { Cairo1 { casm: Vec, sierra: Vec }, } -pub fn cairo1_compiler_tag() -> String { +fn cairo1_compiler_version_for_feature_contracts() -> String { // TODO(lior): Uncomment the following line it and remove the rest of the code, once the // Cairo compiler version is updated to 2.11.0 in the toml file. // If the compiler version is updated in the toml to a version < 2.11.0, // only update the version in the assert below. - // format!("v{}", cairo1_compiler_version()) + // cairo1_compiler_version() assert_eq!(cairo1_compiler_version(), "=2.10.0", "Unsupported compiler version."); - "v2.11.0-dev.2".into() + "2.11.0-dev.2".into() +} + +pub fn cairo1_compiler_tag() -> String { + format!("v{}", cairo1_compiler_version_for_feature_contracts()) } /// Returns the path to the local Cairo1 compiler repository.