-
Notifications
You must be signed in to change notification settings - Fork 26
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(starknet_api): remove duplicate definition of contract class #2298
refactor(starknet_api): remove duplicate definition of contract class #2298
Conversation
Artifacts upload workflows: |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2298 +/- ##
===========================================
- Coverage 40.10% 27.82% -12.29%
===========================================
Files 26 199 +173
Lines 1895 25435 +23540
Branches 1895 25435 +23540
===========================================
+ Hits 760 7077 +6317
- Misses 1100 17776 +16676
- Partials 35 582 +547 ☔ View full report in Codecov by Sentry. |
607c640
to
378185a
Compare
f4b3c28
to
2a84a7a
Compare
2a84a7a
to
1da9eae
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 8 of 12 files at r1, all commit messages.
Reviewable status: 8 of 12 files reviewed, 3 unresolved discussions (waiting on @AvivYossef-starkware)
crates/starknet_sierra_compile/src/utils.rs
line 12 at r2 (raw file):
use starknet_api::state::{ EntryPoint as StarknetApiEntryPoint, SierraContractClass as RpcContractClass,
Suggestion:
SierraContractClass as StarknetApiContractClass,
crates/papyrus_protobuf/src/converters/rpc_transaction.rs
line 334 at r2 (raw file):
} impl TryFrom<protobuf::Cairo1Class> for ContractClass {
@DvirYo-starkware are we okay with removing this?
Code quote:
impl TryFrom<protobuf::Cairo1Class> for ContractClass {
crates/starknet_gateway/src/stateless_transaction_validator_test.rs
line 359 at r2 (raw file):
#[case] expected_error: StatelessTransactionValidatorError, ) { use starknet_api::state::SierraContractClass;
Is this necessary?
Code quote:
use starknet_api::state::SierraContractClass;
1da9eae
to
6383cd0
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: 8 of 12 files reviewed, 3 unresolved discussions (waiting on @DvirYo-starkware and @Yoni-Starkware)
crates/papyrus_protobuf/src/converters/rpc_transaction.rs
line 334 at r2 (raw file):
Previously, Yoni-Starkware (Yoni) wrote…
@DvirYo-starkware are we okay with removing this?
Dvir approves the PR as long as the tests pass.
crates/starknet_gateway/src/stateless_transaction_validator_test.rs
line 359 at r2 (raw file):
Previously, Yoni-Starkware (Yoni) wrote…
Is this necessary?
No
crates/starknet_sierra_compile/src/utils.rs
line 12 at r2 (raw file):
use starknet_api::state::{ EntryPoint as StarknetApiEntryPoint, SierraContractClass as RpcContractClass,
Done.
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 12 files at r1, 2 of 2 files at r3, all commit messages.
Reviewable status: 11 of 12 files reviewed, all discussions resolved
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 r2.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @AvivYossef-starkware)
Merge activity
|
No description provided.