-
Notifications
You must be signed in to change notification settings - Fork 65
starknet_os_flow_tests: migrate test_v1_bound_accounts_cairo0 #9493
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_cairo0 #9493
Conversation
|
Benchmark movements: No major performance changes detected. |
e7199e0 to
e875064
Compare
210b6e4 to
d3f102a
Compare
e875064 to
896b42a
Compare
d3f102a to
9594067
Compare
896b42a to
0a83a07
Compare
f4e57f8 to
56bd729
Compare
440c636 to
306a91a
Compare
56bd729 to
27de36e
Compare
306a91a to
3694d5b
Compare
27de36e to
4306e5d
Compare
3694d5b to
cdf4fba
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 1 of 3 files at r1, 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 807 at r2 (raw file):
let declare_args = declare_tx_args! { version: TransactionVersion::ZERO, max_fee: Fee(1_000_000_000_000_000),
Is it necessary? AFAIK Tx version 0 does not have a max fee
Suggestion:
max_fee: Fee(1_000_000_000_000_000), crates/starknet_os_flow_tests/src/tests.rs line 856 at r2 (raw file):
signature: TransactionSignature(Arc::new(vec![r, s])), ..validate_tx_args };
Please add the doc as to why we create the signature after the tx here
Code quote:
let Signature { r, s } = ecdsa_sign(&private_key, &validate_tx.tx_hash()).unwrap().into();
let validate_tx_args = invoke_tx_args! {
signature: TransactionSignature(Arc::new(vec![r, s])),
..validate_tx_args
};4306e5d to
7d4aa74
Compare
cdf4fba to
46a967c
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: all files reviewed, 2 unresolved discussions (waiting on @AvivYossef-starkware, @dorimedini-starkware, and @Yoni-Starkware)
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, 2 unresolved discussions (waiting on @AvivYossef-starkware, @meship-starkware, and @Yoni-Starkware)
crates/starknet_os_flow_tests/src/tests.rs line 807 at r2 (raw file):
Previously, meship-starkware (Meshi Peled) wrote…
Is it necessary? AFAIK Tx version 0 does not have a max fee
I see that it does have max_fee, because the type used is DeclareTransactionV0V1.
I don't think it matters, we are not trying to test fees here
crates/starknet_os_flow_tests/src/tests.rs line 856 at r2 (raw file):
Previously, meship-starkware (Meshi Peled) wrote…
Please add the doc as to why we create the signature after the tx here
there is an explanation above:
// Create a validate tx and add signature to the transaction. The dummy account used to call
// `__validate__` does not check the signature, so we can use the signature field for
// `__validate__`. This is done after creating the transaction so that we will have access
// to the transaction hash.
is it unclear? we need to sign the tx hash, it's easier to first create the entire tx and then compute the signature
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 856 at r2 (raw file):
Previously, dorimedini-starkware wrote…
there is an explanation above:
// Create a validate tx and add signature to the transaction. The dummy account used to call // `__validate__` does not check the signature, so we can use the signature field for // `__validate__`. This is done after creating the transaction so that we will have access // to the transaction hash.is it unclear? we need to sign the tx hash, it's easier to first create the entire tx and then compute the signature
No, this is fine. I simply missed it
7d4aa74 to
56050a5
Compare
46a967c to
7cb9ec7
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 1 of 1 files at r4, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @AvivYossef-starkware and @Yoni-Starkware)

No description provided.