Skip to content

Conversation

@dorimedini-starkware
Copy link
Collaborator

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Collaborator Author

dorimedini-starkware commented Oct 5, 2025

@dorimedini-starkware dorimedini-starkware self-assigned this Oct 5, 2025
@dorimedini-starkware dorimedini-starkware marked this pull request as ready for review October 5, 2025 07:49
@dorimedini-starkware dorimedini-starkware force-pushed the 10-03-starknet_os_flow_tests_add_v1-bound_cairo1_account_for_flow_tests branch from 62e3ee4 to fed39e9 Compare October 5, 2025 07:52
@dorimedini-starkware dorimedini-starkware force-pushed the 10-03-starknet_os_flow_tests_migrate_test_v1_bound_accounts_cairo1 branch from 30b031e to 3115a18 Compare October 5, 2025 07:52
@dorimedini-starkware dorimedini-starkware force-pushed the 10-03-starknet_os_flow_tests_add_v1-bound_cairo1_account_for_flow_tests branch from fed39e9 to aad4dc2 Compare October 5, 2025 09:15
@dorimedini-starkware dorimedini-starkware force-pushed the 10-03-starknet_os_flow_tests_migrate_test_v1_bound_accounts_cairo1 branch from 3115a18 to 3c46328 Compare October 5, 2025 09:16
@dorimedini-starkware dorimedini-starkware force-pushed the 10-03-starknet_os_flow_tests_add_v1-bound_cairo1_account_for_flow_tests branch from aad4dc2 to 6ed1748 Compare October 5, 2025 09:16
@dorimedini-starkware dorimedini-starkware force-pushed the 10-03-starknet_os_flow_tests_migrate_test_v1_bound_accounts_cairo1 branch from 3c46328 to 1f9f902 Compare October 5, 2025 09:16
@dorimedini-starkware dorimedini-starkware force-pushed the 10-03-starknet_os_flow_tests_add_v1-bound_cairo1_account_for_flow_tests branch from 6ed1748 to 8976e3d Compare October 5, 2025 09:38
@dorimedini-starkware dorimedini-starkware force-pushed the 10-03-starknet_os_flow_tests_migrate_test_v1_bound_accounts_cairo1 branch from 1f9f902 to 2cd1e94 Compare October 5, 2025 09:38
@dorimedini-starkware dorimedini-starkware force-pushed the 10-03-starknet_os_flow_tests_add_v1-bound_cairo1_account_for_flow_tests branch from 0a9d74a to 205fb78 Compare October 14, 2025 10:22
@dorimedini-starkware dorimedini-starkware force-pushed the 10-03-starknet_os_flow_tests_migrate_test_v1_bound_accounts_cairo1 branch from 4b79229 to f6dff13 Compare October 14, 2025 10:22
@dorimedini-starkware dorimedini-starkware force-pushed the 10-03-starknet_os_flow_tests_add_v1-bound_cairo1_account_for_flow_tests branch from 205fb78 to ed4e34c Compare October 15, 2025 11:19
@dorimedini-starkware dorimedini-starkware force-pushed the 10-03-starknet_os_flow_tests_migrate_test_v1_bound_accounts_cairo1 branch from f6dff13 to 04f52ec Compare October 15, 2025 11:19
@dorimedini-starkware dorimedini-starkware force-pushed the 10-03-starknet_os_flow_tests_add_v1-bound_cairo1_account_for_flow_tests branch from ed4e34c to 7b7d8d2 Compare October 19, 2025 18:43
@dorimedini-starkware dorimedini-starkware force-pushed the 10-03-starknet_os_flow_tests_migrate_test_v1_bound_accounts_cairo1 branch from 04f52ec to 3e640a9 Compare October 19, 2025 18:43
Copy link
Collaborator

@meship-starkware meship-starkware left a 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),
            ),
        ]),
    )]);

Copy link
Collaborator

@meship-starkware meship-starkware left a 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,
    };

Copy link
Collaborator Author

@dorimedini-starkware dorimedini-starkware left a 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?

@dorimedini-starkware dorimedini-starkware force-pushed the 10-03-starknet_os_flow_tests_add_v1-bound_cairo1_account_for_flow_tests branch from 7b7d8d2 to 46c0b49 Compare October 23, 2025 08:49
@dorimedini-starkware dorimedini-starkware force-pushed the 10-03-starknet_os_flow_tests_migrate_test_v1_bound_accounts_cairo1 branch from 3e640a9 to d758748 Compare October 23, 2025 08:49
Copy link
Collaborator Author

@dorimedini-starkware dorimedini-starkware left a 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: :shipit: complete! all files reviewed, all discussions resolved (waiting on @AvivYossef-starkware and @Yoni-Starkware)

@dorimedini-starkware dorimedini-starkware force-pushed the 10-03-starknet_os_flow_tests_add_v1-bound_cairo1_account_for_flow_tests branch from 46c0b49 to b7d9194 Compare October 23, 2025 10:13
@dorimedini-starkware dorimedini-starkware force-pushed the 10-03-starknet_os_flow_tests_migrate_test_v1_bound_accounts_cairo1 branch from d758748 to 396441e Compare October 23, 2025 10:13
Copy link
Collaborator

@meship-starkware meship-starkware left a 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: :shipit: complete! all files reviewed, all discussions resolved (waiting on @AvivYossef-starkware and @Yoni-Starkware)

Copy link
Collaborator

@meship-starkware meship-starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: :shipit: 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

@dorimedini-starkware dorimedini-starkware force-pushed the 10-03-starknet_os_flow_tests_add_v1-bound_cairo1_account_for_flow_tests branch from b7d9194 to 4bcff71 Compare October 23, 2025 11:12
@dorimedini-starkware dorimedini-starkware force-pushed the 10-03-starknet_os_flow_tests_migrate_test_v1_bound_accounts_cairo1 branch from 396441e to a71da38 Compare October 23, 2025 11:12
@dorimedini-starkware dorimedini-starkware changed the base branch from 10-03-starknet_os_flow_tests_add_v1-bound_cairo1_account_for_flow_tests to main October 23, 2025 12:27
@dorimedini-starkware dorimedini-starkware force-pushed the 10-03-starknet_os_flow_tests_migrate_test_v1_bound_accounts_cairo1 branch from a71da38 to c7ab47c Compare October 23, 2025 12:27
@graphite-app
Copy link

graphite-app bot commented Oct 23, 2025

Merge activity

  • Oct 23, 12:28 PM UTC: Graphite rebased this pull request, because this pull request is set to merge when ready.

@dorimedini-starkware dorimedini-starkware added this pull request to the merge queue Oct 23, 2025
Merged via the queue into main with commit 35ea8fd Oct 23, 2025
14 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Oct 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants