-
Notifications
You must be signed in to change notification settings - Fork 65
starknet_os: refactor cairo runner utils #7744
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
starknet_os: refactor cairo runner utils #7744
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
d1698db to
e3ebcf7
Compare
42f2e3c to
414735b
Compare
e3ebcf7 to
67903f4
Compare
amosStarkware
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 3 of 4 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @nimrod-starkware)
crates/starknet_os/src/test_utils/cairo_runner.rs line 571 at r2 (raw file):
state_reader: Option<DictStateReader>, ) -> Cairo0EntryPointRunnerResult<(Vec<EndpointArg>, Vec<EndpointArg>, CairoRunner)> { let (mut cairo_runner, program, entrypoint) = initialize_cairo_runner(
Suggestion:
/// This function is split into to sub-functions to allow advanced use cases,
/// which require access to the cairo runner before running the entrypoint.
let (mut cairo_runner, program, entrypoint) = initialize_cairo_runner(crates/starknet_os/src/test_utils/cairo_runner.rs line 595 at r2 (raw file):
program_bytes: &[u8], entrypoint: &str, implicit_args: &[ImplicitArg],
Suggestion:
implicit_args: &[ImplicitArg], // Used to infer the builtins the program uses.414735b to
c51a852
Compare
67903f4 to
295c5e9
Compare
nimrod-starkware
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @amosStarkware)
crates/starknet_os/src/test_utils/cairo_runner.rs line 571 at r2 (raw file):
state_reader: Option<DictStateReader>, ) -> Cairo0EntryPointRunnerResult<(Vec<EndpointArg>, Vec<EndpointArg>, CairoRunner)> { let (mut cairo_runner, program, entrypoint) = initialize_cairo_runner(
Done.
you mean add as a comment, right? (with two slashes)
crates/starknet_os/src/test_utils/cairo_runner.rs line 595 at r2 (raw file):
program_bytes: &[u8], entrypoint: &str, implicit_args: &[ImplicitArg],
Done.
amosStarkware
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r3, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @nimrod-starkware)
crates/starknet_os/src/test_utils/cairo_runner.rs line 571 at r2 (raw file):
Previously, nimrod-starkware wrote…
Done.
you mean add as a comment, right? (with two slashes)
Yes, thanks.
non blocking - please change to -> two, my bad
c51a852 to
92c0134
Compare
295c5e9 to
29ccbce
Compare
92c0134 to
fb900d4
Compare
29ccbce to
6684907
Compare
6684907 to
778e7d8
Compare
fb900d4 to
2e8c047
Compare
nimrod-starkware
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 4 of 4 files at r4, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @nimrod-starkware)

No description provided.