-
Notifications
You must be signed in to change notification settings - Fork 37
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
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
2b8f3e8
to
1b4c7e2
Compare
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 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
1b4c7e2
to
bf37c66
Compare
3719667
to
6bd5dc6
Compare
bf37c66
to
d411cc4
Compare
6bd5dc6
to
243e6cd
Compare
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.
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)
…t from one source
243e6cd
to
f95d6e5
Compare
d411cc4
to
ca30e41
Compare
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: 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.
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.
Reviewed 1 of 1 files at r3, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @alonh5)
No description provided.