Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add migration to karura.
  • Loading branch information
shaunxw committed Aug 26, 2021
commit 518a7b78b30531a90293f680cba40190e7b1c48d
9 changes: 9 additions & 0 deletions runtime/karura/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1619,6 +1619,15 @@ impl orml_xcm::Config for Runtime {
type SovereignOrigin = EnsureRootOrHalfGeneralCouncil;
}

pub struct OnRuntimeUpgrade;
impl frame_support::traits::OnRuntimeUpgrade for OnRuntimeUpgrade {
fn on_runtime_upgrade() -> u64 {
frame_support::migrations::migrate_from_pallet_version_to_storage_version::<AllPalletsWithSystem>(
&RocksDbWeight::get(),
)
}
}

#[allow(clippy::large_enum_variant)]
construct_runtime!(
pub enum Runtime where
Expand Down