interbtc icon indicating copy to clipboard operation
interbtc copied to clipboard

Use substrate storage version

Open gregdhill opened this issue 3 years ago • 0 comments

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

gregdhill avatar Aug 05 '22 15:08 gregdhill