File tree Expand file tree Collapse file tree
crates/blockifier_test_utils/src Expand file tree Collapse file tree Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments