Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

co #10662: Require MaxEncodedLen per default #4746

Merged
merged 5 commits into from
Jan 20, 2022

Conversation

ggwpez
Copy link
Member

@ggwpez ggwpez commented Jan 19, 2022

Hey it's my first MR in Polkadot 😉 I'm not sure with the B-* and D-* labels, leaving them out for now.

Change:

  • Add without_storage_info to all pallets that miss an implementation for MaxEncodedLen
  • Remove generate_storage_info since it is not applied per-default

companion to paritytech/substrate#10662
Cumulus companion: paritytech/cumulus#917

The MaxEncodedLen trait is now enforced by default in Substrate.
All pallets missing an implementation need to be marked with
`without_storage_info` now.

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
@ggwpez ggwpez added A4-awaitingci A4-companion A PR that needs a companion PR to merge in parallel for one of its downstream dependencies. C3-medium PR touches the given topic and has a medium impact on builders. labels Jan 19, 2022
@ggwpez ggwpez self-assigned this Jan 19, 2022
@github-actions github-actions bot added the A0-please_review Pull request needs code review. label Jan 19, 2022
@ggwpez ggwpez removed the A0-please_review Pull request needs code review. label Jan 19, 2022
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
@ggwpez ggwpez added C1-low PR touches the given topic and has a low impact on builders. and removed C3-medium PR touches the given topic and has a medium impact on builders. labels Jan 19, 2022
@ggwpez ggwpez added B0-silent Changes should not be mentioned in any release notes D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit. A0-please_review Pull request needs code review. and removed A4-awaitingci labels Jan 19, 2022
@paritytech-processbot
Copy link

Waiting for commit status.

@paritytech-processbot
Copy link

Merge cancelled due to error. Error: Checks failed for dd84aa8

@ggwpez
Copy link
Member Author

ggwpez commented Jan 20, 2022

bot merge

@paritytech-processbot paritytech-processbot bot merged commit d96d3be into master Jan 20, 2022
@paritytech-processbot paritytech-processbot bot deleted the oty-without-storage-info branch January 20, 2022 12:36
Wizdave97 pushed a commit to ComposableFi/polkadot that referenced this pull request Feb 3, 2022
* Add `without_storage_info`

The MaxEncodedLen trait is now enforced by default in Substrate.
All pallets missing an implementation need to be marked with
`without_storage_info` now.

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Remove `generate_storage_info`

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Add more `without_storage_info`

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* update lockfile for {"substrate"}

Co-authored-by: parity-processbot <>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. A4-companion A PR that needs a companion PR to merge in parallel for one of its downstream dependencies. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants