Introduce ConstUint
to make dependent types in DefaultConfig
more adaptable
#6425
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Resolves #6193
This PR introduces
ConstUint
as a replacement for existing constant getter types likeConstU8
,ConstU16
, etc., providing a more flexible and unified approach.Integration
This update is backward compatible, so developers can choose to adopt
ConstUint
in new implementations or continue using the existing types as needed.Review Notes
ConstUint
is a convenient alternative toConstU8
,ConstU16
, and similar types, particularly useful for configuringDefaultConfig
in pallets. It enables configuring the underlying integer for a specific type without the need to update all dependent types, offering enhanced flexibility in type management.Checklist
T
required)