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

Use substrate storage version #697

Open
gregdhill opened this issue Aug 5, 2022 · 0 comments · May be fixed by #1106
Open

Use substrate storage version #697

gregdhill opened this issue Aug 5, 2022 · 0 comments · May be fixed by #1106
Assignees

Comments

@gregdhill
Copy link
Member

Most of the pallets currently declare StorageVersion in types.rs but we can switch to the interface defined by Substrate, for example:

/// The current storage version.
const STORAGE_VERSION: StorageVersion = StorageVersion::new(3);

#[pallet::pallet]
#[pallet::generate_store(pub(super) trait Store)]
#[pallet::storage_version(STORAGE_VERSION)]
#[pallet::without_storage_info]
pub struct Pallet<T>(_);
@nud3l nud3l added this to Backlog Jan 3, 2023
@nud3l nud3l moved this to Todo ⏳ in Backlog Jan 3, 2023
@nakul1010 nakul1010 linked a pull request Jun 26, 2023 that will close this issue
@nakul1010 nakul1010 self-assigned this Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

Successfully merging a pull request may close this issue.

2 participants