diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c59e922915..6f45f2979b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -60,3 +60,5 @@ jobs: run: make test-benchmarking - name: Check benchmarks run: make check-benchmarks + - name: Check try-runtime + run: make check-try-runtime diff --git a/runtime/karura/src/lib.rs b/runtime/karura/src/lib.rs index 4412dbcefd..69b1c3ab50 100644 --- a/runtime/karura/src/lib.rs +++ b/runtime/karura/src/lib.rs @@ -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::( + &RocksDbWeight::get(), + ) + } +} + #[allow(clippy::large_enum_variant)] construct_runtime!( pub enum Runtime where @@ -1754,8 +1763,14 @@ pub type SignedPayload = generic::SignedPayload; /// Extrinsic type that has already been checked. pub type CheckedExtrinsic = generic::CheckedExtrinsic; /// Executive: handles dispatch to the various modules. -pub type Executive = - frame_executive::Executive, Runtime, AllPallets, ()>; +pub type Executive = frame_executive::Executive< + Runtime, + Block, + frame_system::ChainContext, + Runtime, + AllPallets, + OnRuntimeUpgrade, +>; #[cfg(not(feature = "disable-runtime-api"))] impl_runtime_apis! {