Skip to content
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

chore(starknet_integration_tests): inject chain id in integration test from one source #4211

Merged
merged 1 commit into from
Feb 19, 2025

Conversation

ArniStarkware
Copy link
Contributor

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

@ArniStarkware ArniStarkware marked this pull request as ready for review February 17, 2025 14:44
@ArniStarkware ArniStarkware force-pushed the arni/integration_test/inject_chain_id branch from 2b8f3e8 to 1b4c7e2 Compare February 17, 2025 15:16
@ArniStarkware ArniStarkware changed the title chore(starknet_integration_test): inject chain id in integration test from one source chore(starknet_integration_tests): inject chain id in integration test from one source Feb 17, 2025
Copy link
Contributor

@giladchase giladchase 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: 0 of 4 files reviewed, 1 unresolved discussion (waiting on @alonh5)


crates/starknet_integration_tests/src/flow_test_setup.rs line 119 at r1 (raw file):

    pub fn chain_id(&self) -> &ChainId {
        &self.sequencer_0.node_config.gateway_config.chain_info.chain_id

Do we have to take it from the gateway's config? if its a shared val, oerhaps it should be saved as a fiedl in FlowTestSetup? Maybe the entire RequiredParams instance should be there? not sure. But i i like the getter

Code quote:

        &self.sequencer_0.node_config.gateway_config.chain_info.chain_id

@ArniStarkware ArniStarkware force-pushed the arni/integration_test/inject_chain_id branch from 1b4c7e2 to bf37c66 Compare February 18, 2025 18:54
@ArniStarkware ArniStarkware force-pushed the arni/integration_test/l1_scraper_chain_id branch from 3719667 to 6bd5dc6 Compare February 18, 2025 18:54
@ArniStarkware ArniStarkware force-pushed the arni/integration_test/inject_chain_id branch from bf37c66 to d411cc4 Compare February 18, 2025 18:57
@ArniStarkware ArniStarkware force-pushed the arni/integration_test/l1_scraper_chain_id branch from 6bd5dc6 to 243e6cd Compare February 18, 2025 18:57
Copy link
Collaborator

@alonh5 alonh5 left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 3 of 4 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @ArniStarkware)

@ArniStarkware ArniStarkware changed the base branch from arni/integration_test/l1_scraper_chain_id to graphite-base/4211 February 19, 2025 15:15
@ArniStarkware ArniStarkware force-pushed the arni/integration_test/inject_chain_id branch from d411cc4 to ca30e41 Compare February 19, 2025 15:15
@ArniStarkware ArniStarkware changed the base branch from graphite-base/4211 to main February 19, 2025 15:15
@ArniStarkware ArniStarkware requested a review from alonh5 February 19, 2025 15:17
Copy link
Contributor Author

@ArniStarkware ArniStarkware 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: 3 of 4 files reviewed, all discussions resolved (waiting on @alonh5)


crates/starknet_integration_tests/src/flow_test_setup.rs line 119 at r1 (raw file):

Previously, giladchase wrote…

Do we have to take it from the gateway's config? if its a shared val, oerhaps it should be saved as a fiedl in FlowTestSetup? Maybe the entire RequiredParams instance should be there? not sure. But i i like the getter

It is a shared value, but at this point, it was propagated into the components' configs.
I added a to-do to indicate how extracting the configuration this way is not ideal.

Copy link
Contributor Author

@ArniStarkware ArniStarkware left a 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: :shipit: complete! all files reviewed, all discussions resolved (waiting on @alonh5)

@ArniStarkware ArniStarkware added this pull request to the merge queue Feb 19, 2025
Merged via the queue into main with commit 875926b Feb 19, 2025
9 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants