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

Remove custom implementation for MaxEncodingLen #1800

Merged
merged 2 commits into from
Apr 16, 2024

Conversation

lemunozm
Copy link
Contributor

@lemunozm lemunozm commented Apr 8, 2024

Description

We had some MaxEncodingLen traits implemented manually for some types. Since polkadot-v1.1.0, it seems we can get rid of our custom implementation and let Rust do it for us.

NOTE: Blocked until v1.1.0

@lemunozm lemunozm added Q1-easy Can be done by primarily duplicating and adapting code. P2-nice-to-have Issue is worth doing. I11-cleaning No mandatory issue that leave the repo more readable/organized labels Apr 8, 2024
@lemunozm lemunozm self-assigned this Apr 8, 2024
cdamian
cdamian previously approved these changes Apr 8, 2024
wischli
wischli previously approved these changes Apr 8, 2024
Copy link
Contributor

@wischli wischli left a comment

Choose a reason for hiding this comment

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

Awesome! Two previous TODOs less 🫡

Copy link

codecov bot commented Apr 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 48.53%. Comparing base (58045f4) to head (1d51721).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1800      +/-   ##
==========================================
+ Coverage   48.46%   48.53%   +0.07%     
==========================================
  Files         168      167       -1     
  Lines       13332    13311      -21     
==========================================
  Hits         6461     6461              
+ Misses       6871     6850      -21     

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

@lemunozm lemunozm changed the base branch from polkadot-v1.1.0 to main April 15, 2024 10:19
@lemunozm lemunozm dismissed stale reviews from wischli and cdamian April 15, 2024 10:19

The base branch was changed.

@lemunozm lemunozm requested a review from hieronx as a code owner April 15, 2024 10:19
@lemunozm lemunozm changed the base branch from main to polkadot-v1.1.0 April 15, 2024 10:22
@lemunozm lemunozm force-pushed the ref/remove-custom-max-encoding branch from 332cb6b to 2b833f3 Compare April 15, 2024 10:23
@lemunozm lemunozm changed the base branch from polkadot-v1.1.0 to main April 15, 2024 10:23
@lemunozm lemunozm requested review from cdamian and wischli April 15, 2024 10:23
@lemunozm lemunozm enabled auto-merge (squash) April 15, 2024 11:05
@lemunozm lemunozm marked this pull request as draft April 15, 2024 11:30
auto-merge was automatically disabled April 15, 2024 11:30

Pull request was converted to draft

@lemunozm lemunozm marked this pull request as ready for review April 15, 2024 11:30
@lemunozm lemunozm enabled auto-merge (squash) April 15, 2024 11:31
@lemunozm lemunozm force-pushed the ref/remove-custom-max-encoding branch from 2b833f3 to d2a4bfe Compare April 15, 2024 14:47
@lemunozm lemunozm force-pushed the ref/remove-custom-max-encoding branch from 1697d32 to 1d51721 Compare April 15, 2024 15:11
@lemunozm
Copy link
Contributor Author

Can any of you re-approve this? @cdamian @wischli @mustermeiszer 🙏🏻

@lemunozm lemunozm merged commit 01178af into main Apr 16, 2024
12 checks passed
@lemunozm lemunozm deleted the ref/remove-custom-max-encoding branch April 16, 2024 05:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I11-cleaning No mandatory issue that leave the repo more readable/organized P2-nice-to-have Issue is worth doing. Q1-easy Can be done by primarily duplicating and adapting code.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants