-
Notifications
You must be signed in to change notification settings - Fork 85
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
refactor(config): move execution config to default #1828
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1828 +/- ##
==========================================
+ Coverage 72.04% 73.27% +1.22%
==========================================
Files 142 141 -1
Lines 20314 19969 -345
Branches 20314 19969 -345
==========================================
- Hits 14636 14632 -4
- Misses 3508 3569 +61
+ Partials 2170 1768 -402 ☔ View full report in Codecov by Sentry. |
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 20 of 23 files at r1, all commit messages.
Reviewable status: 20 of 23 files reviewed, 5 unresolved discussions (waiting on @dan-starkware and @eitanm-starkware)
a discussion (no related file):
Why are there changes related to load_test?
config/default_config.json
line 173 at r1 (raw file):
}, "rpc.execution_config.eth_fee_contract_address": { "description": "For executing transactions, the eth address to receive fees",
The ETH fee token contract address
Code quote:
For executing transactions, the eth address to receive fees
config/default_config.json
line 183 at r1 (raw file):
}, "rpc.execution_config.strk_fee_contract_address": { "description": "For executing transactions, the strk address to receive fees",
The STRK fee token contract address
Code quote:
For executing transactions, the strk address to receive fees
crates/papyrus_execution/src/testing_instances.rs
line 34 at r1 (raw file):
/// Creates ExecutionConfig for tests. pub fn get_mock_execution_config() -> ExecutionConfig {
get_test_execution_config (mock is a different thing)
Can you also add a todo to make the execution tests use the default execution config?
Code quote:
get_mock_execution_config
crates/papyrus_rpc/src/lib.rs
line 146 at r1 (raw file):
¶m.description[1..] ); }
Why to do this?
Code quote:
for param in execution_config_dump.values_mut() {
param.description = format!(
"For executing transactions, {}{}",
param.description[0..1].to_lowercase(),
¶m.description[1..]
);
}
55f4a7f
to
434c0f6
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: 13 of 23 files reviewed, 5 unresolved discussions (waiting on @dan-starkware and @yair-starkware)
a discussion (no related file):
Previously, yair-starkware (Yair) wrote…
Why are there changes related to load_test?
reverted
config/default_config.json
line 173 at r1 (raw file):
Previously, yair-starkware (Yair) wrote…
The ETH fee token contract address
Done.
config/default_config.json
line 183 at r1 (raw file):
Previously, yair-starkware (Yair) wrote…
The STRK fee token contract address
Done.
crates/papyrus_execution/src/testing_instances.rs
line 34 at r1 (raw file):
Previously, yair-starkware (Yair) wrote…
get_test_execution_config (mock is a different thing)
Can you also add a todo to make the execution tests use the default execution config?
Done.
crates/papyrus_rpc/src/lib.rs
line 146 at r1 (raw file):
Previously, yair-starkware (Yair) wrote…
Why to do this?
Reused this style from other dumps
434c0f6
to
3bef1c0
Compare
3bef1c0
to
a947c5c
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 10 of 10 files at r2, 3 of 3 files at r3, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @dan-starkware)
Please revert preset deletion |
Pull Request type
Please check the type of change your PR introduces:
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this introduce a breaking change?
Other information
This change is