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

Add ConstSize wrapper. #1530

Merged
merged 8 commits into from
Oct 17, 2023
Merged

Add ConstSize wrapper. #1530

merged 8 commits into from
Oct 17, 2023

Conversation

Neopallium
Copy link
Contributor

Adds ConstSize wrapper for const u32 values. This is needed for the size limits for bounded collections like BoundedBTreeMap to be used as extrinsic parameters, since extrinsic parameters need extra traits (Clone, Debug, PartialEq, Eq) and this also applies to the size limit generic type parameter on bounded collections.

@codecov
Copy link

codecov bot commented Sep 26, 2023

Codecov Report

Merging #1530 (321374e) into develop (3ab8456) will increase coverage by 0.10%.
The diff coverage is 0.00%.

❗ Current head 321374e differs from pull request most recent head d03db46. Consider uploading reports for the commit d03db46 to get more accurate results

@@             Coverage Diff             @@
##           develop    #1530      +/-   ##
===========================================
+ Coverage    58.54%   58.65%   +0.10%     
===========================================
  Files          142      142              
  Lines        31992    31885     -107     
===========================================
- Hits         18730    18702      -28     
+ Misses       13262    13183      -79     
Files Coverage Δ
pallets/common/src/lib.rs 64.61% <0.00%> (-4.24%) ⬇️

... and 6 files with indirect coverage changes

@Neopallium Neopallium enabled auto-merge (squash) October 17, 2023 18:09
@Neopallium Neopallium merged commit d4a4e25 into develop Oct 17, 2023
13 checks passed
@Neopallium Neopallium deleted the const_size_type_wrapper branch October 17, 2023 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants