Skip to content

Commit 329e092

Browse files
committed
chore: remove unused migrations
1 parent 08239b9 commit 329e092

2 files changed

Lines changed: 3 additions & 23 deletions

File tree

  • runtimes
    • peregrine/src/migrations
    • spiritnet/src/migrations

runtimes/peregrine/src/migrations/mod.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,15 @@
1616

1717
// If you feel like getting in touch with us, you can do so at <hello@kilt.io>
1818

19-
use frame_support::parameter_types;
2019
use runtime_common::constants;
2120

2221
use crate::{weights, Balances, ParachainSystem, Runtime, RuntimeEvent};
2322

24-
parameter_types! {
25-
pub const Inflation: &'static str = "Inflation";
26-
}
27-
2823
impl cumulus_pallet_xcmp_queue::migration::v5::V5Config for Runtime {
2924
type ChannelList = ParachainSystem;
3025
}
3126

32-
pub type RuntimeMigrations = ();
27+
pub type RuntimeMigrations = (pallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>,);
3328

3429
impl pallet_migration::Config for Runtime {
3530
type RuntimeEvent = RuntimeEvent;

runtimes/spiritnet/src/migrations/mod.rs

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,11 @@
1616

1717
// If you feel like getting in touch with us, you can do so at <hello@kilt.io>
1818

19-
use frame_support::parameter_types;
2019
use runtime_common::constants;
2120

22-
use crate::{weights, Balances, ParachainSystem, Runtime, RuntimeEvent};
21+
use crate::{weights, Balances, Runtime, RuntimeEvent};
2322

24-
parameter_types! {
25-
pub const Inflation: &'static str = "Inflation";
26-
pub const DmpPalletName: &'static str = "DmpQueue";
27-
}
28-
29-
impl cumulus_pallet_xcmp_queue::migration::v5::V5Config for Runtime {
30-
type ChannelList = ParachainSystem;
31-
}
32-
33-
pub type RuntimeMigrations = (
34-
pallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>,
35-
frame_support::migrations::RemovePallet<DmpPalletName, <Runtime as frame_system::Config>::DbWeight>,
36-
cumulus_pallet_xcmp_queue::migration::v5::MigrateV4ToV5<Runtime>,
37-
frame_support::migrations::RemovePallet<Inflation, <Runtime as frame_system::Config>::DbWeight>,
38-
);
23+
pub type RuntimeMigrations = (pallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>,);
3924

4025
impl pallet_migration::Config for Runtime {
4126
type RuntimeEvent = RuntimeEvent;

0 commit comments

Comments
 (0)