From 5cda19741c336280588c64d441dfec527ff99098 Mon Sep 17 00:00:00 2001 From: Maksim Ramanenkau Date: Fri, 26 Apr 2024 17:37:50 +0400 Subject: [PATCH] Remove migration to v8 since it's already executed (#313) ### Description ### Types of Changes - [ ] Tech Debt (Code improvements) - [x] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] Dependency upgrade (A change in substrate or any 3rd party crate version) ### Migrations and Hooks - [ ] This change requires a runtime migration. - [ ] Modifies `on_initialize` - [ ] Modifies `on_finalize` ### Checklist - [x] Change has been tested locally. - [ ] Change adds / updates tests. - [ ] Changelog doc updated. --- runtime/cere-dev/src/lib.rs | 8 -------- runtime/cere/src/lib.rs | 8 -------- 2 files changed, 16 deletions(-) diff --git a/runtime/cere-dev/src/lib.rs b/runtime/cere-dev/src/lib.rs index 62acd4778..9c1645352 100644 --- a/runtime/cere-dev/src/lib.rs +++ b/runtime/cere-dev/src/lib.rs @@ -1441,13 +1441,6 @@ impl Get<&'static str> for StakingMigrationV11OldPallet { } } -pub struct MigrateStakingPalletToV8; -impl OnRuntimeUpgrade for MigrateStakingPalletToV8 { - fn on_runtime_upgrade() -> Weight { - pallet_staking::migrations::v8::migrate::() - } -} - /// Unchecked extrinsic type as expected by this runtime. pub type UncheckedExtrinsic = generic::UncheckedExtrinsic; @@ -1477,7 +1470,6 @@ parameter_types! { /// Runtime migrations type Migrations = ( - MigrateStakingPalletToV8, pallet_staking::migrations::v9::InjectValidatorsIntoVoterList, pallet_staking::migrations::v10::MigrateToV10, pallet_staking::migrations::v11::MigrateToV11, diff --git a/runtime/cere/src/lib.rs b/runtime/cere/src/lib.rs index 3a392193f..0ab9c4042 100644 --- a/runtime/cere/src/lib.rs +++ b/runtime/cere/src/lib.rs @@ -1446,13 +1446,6 @@ impl Get<&'static str> for StakingMigrationV11OldPallet { } } -pub struct MigrateStakingPalletToV8; -impl OnRuntimeUpgrade for MigrateStakingPalletToV8 { - fn on_runtime_upgrade() -> Weight { - pallet_staking::migrations::v8::migrate::() - } -} - // We don't need to run pallet_balances::pallets::MigrateToTrackInactive or // pallet_balances::pallets::MigrateManyToTrackInactive since XCM related only. // MigrateToTrackInactive and MigrateManyToTrackInactive simply add CheckingAccount value to @@ -1483,7 +1476,6 @@ parameter_types! { /// Runtime migrations type Migrations = ( - MigrateStakingPalletToV8, pallet_staking::migrations::v9::InjectValidatorsIntoVoterList, pallet_staking::migrations::v10::MigrateToV10, pallet_staking::migrations::v11::MigrateToV11,