Skip to content

Commit

Permalink
feat: add storage version
Browse files Browse the repository at this point in the history
  • Loading branch information
Supremesource committed Jan 13, 2025
1 parent c17ec37 commit 8631dcb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pallets/governance/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,10 @@ pub mod pallet {
type WeightInfo: WeightInfo;
}

const STORAGE_VERSION: StorageVersion = StorageVersion::new(1);

#[pallet::pallet]
#[pallet::storage_version(STORAGE_VERSION)]
pub struct Pallet<T>(_);

#[pallet::hooks]
Expand Down
2 changes: 1 addition & 1 deletion runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
include!(concat!(env!("OUT_DIR"), "/wasm_binary.rs"));

extern crate alloc;
use crate::weights::constants::RocksDbWeight;
use alloc::vec::Vec;
use interface::*;
#[cfg(feature = "std")]
use sp_version::NativeVersion;
use sp_version::RuntimeVersion;
use weights::constants::RocksDbWeight;

use polkadot_sdk::{
frame_executive, frame_support, frame_system,
Expand Down

0 comments on commit 8631dcb

Please sign in to comment.