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(()) } }