chore(blockifier_test_utils): extract logic into starknet_sierra_compile#5587
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
d4f41c9 to
fedbe71
Compare
cbca1cd to
342b7ed
Compare
fedbe71 to
2e664ed
Compare
342b7ed to
03fe325
Compare
2e664ed to
888fe21
Compare
03fe325 to
96667ec
Compare
888fe21 to
f786982
Compare
96667ec to
a60a9c9
Compare
giladchase
left a comment
There was a problem hiding this comment.
Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @elintul and @noaov1)
crates/blockifier_test_utils/src/cairo_compile.rs line 191 at r1 (raw file):
sierra_compile_command.args([ "starknet-sierra-compile", path.as_str(),
nit
(also for consistency with sn_compile above)
Suggestion:
&path,f786982 to
ff113b5
Compare
a60a9c9 to
fb5bcb3
Compare
dorimedini-starkware
left a comment
There was a problem hiding this comment.
Reviewable status: 0 of 1 files reviewed, all discussions resolved (waiting on @elintul, @giladchase, and @noaov1)
crates/blockifier_test_utils/src/cairo_compile.rs line 191 at r1 (raw file):
Previously, giladchase wrote…
nit
(also for consistency with sn_compile above)
lol done
ff113b5 to
977afe9
Compare
fb5bcb3 to
1529e24
Compare
977afe9 to
53e06d5
Compare
1529e24 to
2139eee
Compare
53e06d5 to
f5e51e5
Compare
2139eee to
6a283e6
Compare
f5e51e5 to
79486d3
Compare
6a283e6 to
daedaaf
Compare
79486d3 to
0475b9f
Compare
daedaaf to
7cdec1d
Compare
dorimedini-starkware
left a comment
There was a problem hiding this comment.
Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @elintul and @noaov1)
0475b9f to
4e0bd9b
Compare
7cdec1d to
ca70f6a
Compare
4e0bd9b to
cb5749f
Compare
ca70f6a to
15e617a
Compare
cb5749f to
33ff587
Compare
61ac940 to
f5d805b
Compare
|
Artifacts upload workflows: |
|
Benchmark movements: |
TzahiTaub
left a comment
There was a problem hiding this comment.
Reviewed 1 of 1 files at r3, all commit messages.
Reviewable status: all files reviewed, 5 unresolved discussions (waiting on @elintul and @noaov1)
crates/blockifier_test_utils/src/cairo_compile.rs line 148 at r3 (raw file):
format!("--manifest-path={}/Cargo.toml", cairo1_compiler_path.to_string_lossy()), "--bin".into(), ]);
Suggestion:
verify_cairo1_compiler_deps(git_tag_override);
let cairo1_compiler_path = local_cairo1_compiler_repo_path();
// Command args common to both compilation phases.
let mut base_compile_args = vec![
"run".into(),
format!("--manifest-path={}/Cargo.toml", cairo1_compiler_path.to_string_lossy()),
"--bin".into(),
]);crates/blockifier_test_utils/src/cairo_compile.rs line 169 at r3 (raw file):
} /// Compile Cairo1 Contract into their Sierra version using the compiler version set in the
Suggestion:
// Compilescrates/blockifier_test_utils/src/cairo_compile.rs line 171 at r3 (raw file):
/// Compile Cairo1 Contract into their Sierra version using the compiler version set in the /// Cargo.toml pub fn starknet_compile(path: String, base_compile_args: &mut [String]) -> Vec<u8> {
Why is this mutable?
Code quote:
base_compile_args: &mut [String]crates/blockifier_test_utils/src/cairo_compile.rs line 188 at r3 (raw file):
} /// Compile Sierra code into CASM.
Suggestion:
/// Compiles crates/blockifier_test_utils/src/cairo_compile.rs line 189 at r3 (raw file):
/// Compile Sierra code into CASM. fn starknet_sierra_compile(path: String, base_compile_args: &mut Vec<String>) -> Vec<u8> {
Why is this mutable (and why isn't it the same type as in starknet_compile)?
Code quote:
base_compile_args: &mut Vec<String>f5d805b to
8815395
Compare
8815395 to
08e5606
Compare
TzahiTaub
left a comment
There was a problem hiding this comment.
Reviewed 1 of 1 files at r4, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @elintul and @noaov1)

No description provided.