From 12d1600267e256cab7f8b2ac49a5cf67ae8e0cc0 Mon Sep 17 00:00:00 2001 From: Kian Paimani <5588131+kianenigma@users.noreply.github.com> Date: Thu, 13 Jan 2022 07:52:03 +0100 Subject: [PATCH] Fix the migrations for upcoming release (#4692) --- polkadot/runtime/kusama/src/lib.rs | 7 ++++--- polkadot/runtime/polkadot/src/lib.rs | 10 +++------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/polkadot/runtime/kusama/src/lib.rs b/polkadot/runtime/kusama/src/lib.rs index 5ad2da1586..5711545ee1 100644 --- a/polkadot/runtime/kusama/src/lib.rs +++ b/polkadot/runtime/kusama/src/lib.rs @@ -1478,7 +1478,7 @@ pub type Executive = frame_executive::Executive< frame_system::ChainContext, Runtime, AllPalletsWithSystem, - (SessionHistoricalPalletPrefixMigration, SchedulerMigrationV3), + (SchedulerMigrationV3, RefundNickPalletDeposit), >; /// The payload being signed in the transactions. pub type SignedPayload = generic::SignedPayload; @@ -2885,8 +2885,9 @@ impl OnRuntimeUpgrade for RefundNickPalletDeposit { } #[cfg(feature = "try-runtime")] - fn pre_migrate() -> Result<(), &'static str> { - Self::execute(true) + fn pre_upgrade() -> Result<(), &'static str> { + let _ = Self::execute(true); + Ok(()) } } diff --git a/polkadot/runtime/polkadot/src/lib.rs b/polkadot/runtime/polkadot/src/lib.rs index 6a296df0df..69c419e048 100644 --- a/polkadot/runtime/polkadot/src/lib.rs +++ b/polkadot/runtime/polkadot/src/lib.rs @@ -1427,12 +1427,7 @@ pub type Executive = frame_executive::Executive< frame_system::ChainContext, Runtime, AllPalletsWithSystem, - ( - StakingBagsListMigrationV8, - SessionHistoricalPalletPrefixMigration, - SchedulerMigrationV3, - FixCouncilDepositMigration, - ), + (SchedulerMigrationV3, FixCouncilDepositMigration), >; /// The payload being signed in transactions. pub type SignedPayload = generic::SignedPayload; @@ -1626,7 +1621,8 @@ impl OnRuntimeUpgrade for FixCouncilDepositMigration { #[cfg(feature = "try-runtime")] fn pre_upgrade() -> Result<(), &'static str> { - Self::execute(true) + let _ = Self::execute(true); + Ok(()) } }