-
Notifications
You must be signed in to change notification settings - Fork 65
starknet_os_flow_tests: migrate test_v1_bound_accounts_cairo1 #9496
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: migrate test_v1_bound_accounts_cairo1 #9496
Conversation
62e3ee4 to
fed39e9
Compare
30b031e to
3115a18
Compare
fed39e9 to
aad4dc2
Compare
3115a18 to
3c46328
Compare
aad4dc2 to
6ed1748
Compare
3c46328 to
1f9f902
Compare
6ed1748 to
8976e3d
Compare
1f9f902 to
2cd1e94
Compare
0a9d74a to
205fb78
Compare
4b79229 to
f6dff13
Compare
205fb78 to
ed4e34c
Compare
f6dff13 to
04f52ec
Compare
ed4e34c to
7b7d8d2
Compare
04f52ec to
3e640a9
Compare
meship-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.
@meship-starkware reviewed 2 of 2 files at r2, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @AvivYossef-starkware and @Yoni-Starkware)
crates/starknet_os_flow_tests/src/tests.rs line 946 at r2 (raw file):
signature: TransactionSignature(Arc::new(vec![r, s])), ..invoke_tx_args };
Please add the documentation as to why we create the signature after the transaction creation
Code quote:
let Signature { r, s } = ecdsa_sign(&private_key, &invoke_tx.tx_hash()).unwrap().into();
let invoke_tx_args = invoke_tx_args! {
signature: TransactionSignature(Arc::new(vec![r, s])),
..invoke_tx_args
};crates/starknet_os_flow_tests/src/tests.rs line 971 at r2 (raw file):
), ]), )]);
Why is it ok to ignore the fee_token_address storage updates here?
Code quote:
let expected_storage_updates = HashMap::from([(
v1_bound_account_address,
HashMap::from([
(
StarknetStorageKey(selector_from_name("Account_public_key").0.try_into().unwrap()),
StarknetStorageValue(public_key),
),
(
StarknetStorageKey(
Pedersen::hash(&selector_from_name("SRC5_supported_interfaces").0, &isrc6_id)
.try_into()
.unwrap(),
),
StarknetStorageValue(Felt::ONE),
),
]),
)]);
meship-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, 3 unresolved discussions (waiting on @AvivYossef-starkware, @dorimedini-starkware, and @Yoni-Starkware)
crates/starknet_os_flow_tests/src/tests.rs line 902 at r2 (raw file):
compiled_class_hash, resource_bounds: *NON_TRIVIAL_RESOURCE_BOUNDS, };
Is the fundeed account an OZ account? Does it matter for the test?
Code quote:
let declare_args = declare_tx_args! {
sender_address: *FUNDED_ACCOUNT_ADDRESS,
nonce: test_manager.next_nonce(*FUNDED_ACCOUNT_ADDRESS),
class_hash,
compiled_class_hash,
resource_bounds: *NON_TRIVIAL_RESOURCE_BOUNDS,
};
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, 3 unresolved discussions (waiting on @AvivYossef-starkware, @meship-starkware, and @Yoni-Starkware)
crates/starknet_os_flow_tests/src/tests.rs line 902 at r2 (raw file):
Previously, meship-starkware (Meshi Peled) wrote…
Is the fundeed account an OZ account? Does it matter for the test?
it doesn't matter, the funded account is just the utility account used to setup the test
crates/starknet_os_flow_tests/src/tests.rs line 946 at r2 (raw file):
Previously, meship-starkware (Meshi Peled) wrote…
Please add the documentation as to why we create the signature after the transaction creation
// Create an invoke tx, compute the hash, sign the hash and update the signature on the tx.
not enough?
crates/starknet_os_flow_tests/src/tests.rs line 971 at r2 (raw file):
Previously, meship-starkware (Meshi Peled) wrote…
Why is it ok to ignore the fee_token_address storage updates here?
hmmm... is it important to test that? I was under the impression that we care that the contract state was correctly updated, why would the fee collection mechanism behave any differently here?
7b7d8d2 to
46c0b49
Compare
3e640a9 to
d758748
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.
@dorimedini-starkware reviewed 2 of 2 files at r3, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @AvivYossef-starkware and @Yoni-Starkware)
46c0b49 to
b7d9194
Compare
d758748 to
396441e
Compare
meship-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.
@meship-starkware reviewed 2 of 2 files at r3, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @AvivYossef-starkware and @Yoni-Starkware)
meship-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:
complete! all files reviewed, all discussions resolved (waiting on @AvivYossef-starkware and @Yoni-Starkware)
crates/starknet_os_flow_tests/src/tests.rs line 971 at r2 (raw file):
Previously, dorimedini-starkware wrote…
hmmm... is it important to test that? I was under the impression that we care that the contract state was correctly updated, why would the fee collection mechanism behave any differently here?
After reading the test again, I think you are right, the reason we add it is because we found the account so meaning this change will be in the state diff and the Python test check the whole state diff
b7d9194 to
4bcff71
Compare
396441e to
a71da38
Compare
a71da38 to
c7ab47c
Compare
Merge activity
|

No description provided.