diff --git a/pallets/governance/src/lib.rs b/pallets/governance/src/lib.rs index f5f5553..e1586f3 100644 --- a/pallets/governance/src/lib.rs +++ b/pallets/governance/src/lib.rs @@ -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(_); #[pallet::hooks] diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 573de4e..3c5c7ae 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -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,