Skip to content

Commit

Permalink
chore(test_utils): allow all libfuncs in Cairo 1 compile (#1871)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoni-Starkware authored Nov 10, 2024
1 parent adbaf96 commit 038d3ef
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions crates/blockifier/src/test_utils/cairo_compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,12 @@ pub fn cairo1_compile(
// Sierra -> CASM.
let mut sierra_compile_command = Command::new("cargo");
sierra_compile_command.args(base_compile_args);
sierra_compile_command.args(["starknet-sierra-compile", temp_path_str.to_str().unwrap()]);
sierra_compile_command.args([
"starknet-sierra-compile",
temp_path_str.to_str().unwrap(),
"--allowed-libfuncs-list-name",
"all",
]);
let casm_output = run_and_verify_output(&mut sierra_compile_command);

casm_output.stdout
Expand Down Expand Up @@ -155,7 +160,14 @@ pub fn starknet_compile(
// Cairo -> Sierra.
let mut starknet_compile_commmand = Command::new("cargo");
starknet_compile_commmand.args(base_compile_args.clone());
starknet_compile_commmand.args(["starknet-compile", "--", "--single-file", &path]);
starknet_compile_commmand.args([
"starknet-compile",
"--",
"--single-file",
&path,
"--allowed-libfuncs-list-name",
"all",
]);
let sierra_output = run_and_verify_output(&mut starknet_compile_commmand);

sierra_output.stdout
Expand Down

0 comments on commit 038d3ef

Please sign in to comment.