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

Remove #[pallet::generate_storage_info] from docs #14116

Merged
merged 2 commits into from
May 10, 2023

Conversation

ggwpez
Copy link
Member

@ggwpez ggwpez commented May 10, 2023

Closes #14089

#[pallet::generate_storage_info] is not valid, and was probably added to the docs in error.
It is only valid in the old decl_* pallet syntax.

Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
@ggwpez ggwpez added A0-please_review Pull request needs code review. 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 labels May 10, 2023
@ggwpez ggwpez self-assigned this May 10, 2023
@ggwpez ggwpez requested review from a team and kianenigma May 10, 2023 10:30
@KiChjang
Copy link
Contributor

KiChjang commented May 10, 2023

Wait no, it was valid when we didn't MEL bound our storage types, and can't be used in the old decl_* syntax. Am I remembering correctly that we now ensure that every storage item is MEL bound?

@ggwpez
Copy link
Member Author

ggwpez commented May 10, 2023

Wait no, it was valid when we didn't MEL bound our storage types, and can't be used in the old decl_* syntax.

Ah yes, could be. But it also works in the old syntax

/// decl_storage! { generate_storage_info

Am I remembering correctly that we now ensure that every storage item is MEL bound?

Yes, otherwise without_storage_info or selective unbounded are needed.

@ggwpez
Copy link
Member Author

ggwpez commented May 10, 2023

bot merge

@paritytech-processbot paritytech-processbot bot merged commit 49154cc into master May 10, 2023
@paritytech-processbot paritytech-processbot bot deleted the oty-fix-docs branch May 10, 2023 20:29
niklasad1 pushed a commit that referenced this pull request May 17, 2023
* Fix docs

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Add UI test

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

---------

Signed-off-by: Oliver Tale-Yazdi <[email protected]>
nathanwhit pushed a commit to nathanwhit/substrate that referenced this pull request Jul 19, 2023
* Fix docs

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Add UI test

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

---------

Signed-off-by: Oliver Tale-Yazdi <[email protected]>
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. 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.

deprecate #[pallet::generate_storage_info]
3 participants