-
Notifications
You must be signed in to change notification settings - Fork 65
starknet_os_flow_tests: move nonce manager into test manager #9562
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_flow_tests: move nonce manager into test manager #9562
Conversation
dorimedini-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: 0 of 2 files reviewed, all discussions resolved (waiting on @AvivYossef-starkware, @meship-starkware, and @nimrod-starkware)
a discussion (no related file):
reasons:
- one less object to carry around
- allows the next PR - reduce boilerplate with a utility method that invokes from the funded account with default resource bounds, while advancing the relevant nonce
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.
@nimrod-starkware reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @AvivYossef-starkware and @meship-starkware)
crates/starknet_os_flow_tests/src/test_manager.rs line 247 at r1 (raw file):
per_block_transactions: vec![vec![]], } }
Suggestion:
/// Creates a new `TestManager` with the provided initial state data and nonce manager.
pub(crate) fn new_with_initial_state_data_and_nonce_manager(
initial_state_data: InitialStateData<S>,
nonce_manager: NonceManager,
) -> Self {
Self {
initial_state: initial_state_data.initial_state,
execution_contracts: initial_state_data.execution_contracts,
nonce_manager,
per_block_transactions: vec![vec![]],
}
}
dorimedini-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, 1 unresolved discussion (waiting on @AvivYossef-starkware, @meship-starkware, and @nimrod-starkware)
crates/starknet_os_flow_tests/src/test_manager.rs line 247 at r1 (raw file):
per_block_transactions: vec![vec![]], } }
why? it's clear from the signature, and the current state of nonces is part of the initial state of the system
3f7b611 to
13bb534
Compare
dorimedini-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: 1 of 3 files reviewed, 1 unresolved discussion (waiting on @AvivYossef-starkware, @meship-starkware, and @nimrod-starkware)
crates/starknet_os_flow_tests/src/test_manager.rs line 247 at r1 (raw file):
Previously, dorimedini-starkware wrote…
why? it's clear from the signature, and the current state of nonces is part of the initial state of the system
done
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.
@nimrod-starkware reviewed 2 of 2 files at r2, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @AvivYossef-starkware and @meship-starkware)
13bb534 to
eeb8412
Compare
Merge activity
|

No description provided.