Skip to content

Use substrate storage version #697

@gregdhill

Description

@gregdhill

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>(_);

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Todo ⏳

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions