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

feat(starknet_api): the StarknetVersion type is now an enum #1376

Conversation

dorimedini-starkware
Copy link
Collaborator

@dorimedini-starkware dorimedini-starkware commented Oct 13, 2024

This change is Reviewable

@dorimedini-starkware dorimedini-starkware marked this pull request as ready for review October 13, 2024 18:30
Copy link
Collaborator Author

dorimedini-starkware commented Oct 13, 2024

@dorimedini-starkware dorimedini-starkware force-pushed the 10-13-feat_starknet_api_the_starknetversion_type_is_now_an_enum branch from 24527f3 to f6c130b Compare October 13, 2024 18:33
@dorimedini-starkware dorimedini-starkware force-pushed the 10-13-feat_starknet_api_the_starknetversion_type_is_now_an_enum branch from f6c130b to ed5e796 Compare October 14, 2024 05:42
Copy link

codecov bot commented Oct 14, 2024

Codecov Report

Attention: Patch coverage is 86.95652% with 3 lines in your changes missing coverage. Please review.

Project coverage is 71.46%. Comparing base (b0cfe82) to head (2a06947).
Report is 420 commits behind head on main.

Files with missing lines Patch % Lines
crates/starknet_api/src/block.rs 85.71% 1 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1376      +/-   ##
==========================================
- Coverage   74.18%   71.46%   -2.73%     
==========================================
  Files         359      357       -2     
  Lines       36240    38149    +1909     
  Branches    36240    38149    +1909     
==========================================
+ Hits        26886    27262     +376     
- Misses       7220     8770    +1550     
+ Partials     2134     2117      -17     
Flag Coverage Δ
?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dorimedini-starkware dorimedini-starkware force-pushed the 10-13-feat_starknet_api_the_starknetversion_type_is_now_an_enum branch 2 times, most recently from 82c1ffa to 5f65a5e Compare October 14, 2024 07:10
@dorimedini-starkware dorimedini-starkware force-pushed the 10-13-feat_starknet_api_the_starknetversion_type_is_now_an_enum branch 2 times, most recently from e8e7154 to 660f811 Compare October 14, 2024 12:11
@dorimedini-starkware dorimedini-starkware self-assigned this Oct 14, 2024
@dorimedini-starkware dorimedini-starkware force-pushed the 10-13-feat_starknet_api_the_starknetversion_type_is_now_an_enum branch from 660f811 to 3e08742 Compare October 15, 2024 10:11
@dorimedini-starkware dorimedini-starkware force-pushed the 10-13-feat_starknet_api_the_starknetversion_type_is_now_an_enum branch from 3e08742 to 2a06947 Compare October 15, 2024 10:12
Copy link
Collaborator

@Yoni-Starkware Yoni-Starkware 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 5 of 8 files at r1, 1 of 2 files at r2, 2 of 2 files at r3, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @dorimedini-starkware)


crates/starknet_api/src/block.rs line 135 at r3 (raw file):

    type Error = StarknetApiError;
    fn try_from(starknet_version: &str) -> Result<Self, StarknetApiError> {
        Self::try_from(starknet_version.to_string())

Does this return Vec<u8>?

Code quote:

to_string()

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


crates/starknet_api/src/block.rs line 135 at r3 (raw file):

Previously, Yoni-Starkware (Yoni) wrote…

Does this return Vec<u8>?

no, it returns the string-serialized version, e.g. "0.13.1"

Copy link
Collaborator Author

dorimedini-starkware commented Oct 15, 2024

Merge activity

  • Oct 15, 1:32 PM EDT: A user started a stack merge that includes this pull request via Graphite.
  • Oct 15, 1:33 PM EDT: A user merged this pull request with Graphite.

@dorimedini-starkware dorimedini-starkware merged commit b6cec46 into main Oct 15, 2024
22 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Oct 18, 2024
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.

2 participants