Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions crates/blockifier_test_utils/src/cairo_compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,18 @@ pub enum CompilationArtifacts {
Cairo1 { casm: Vec<u8>, sierra: Vec<u8> },
}

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.
Expand Down
Loading