diff --git a/system-parachains/asset-hubs/asset-hub-polkadot/src/lib.rs b/system-parachains/asset-hubs/asset-hub-polkadot/src/lib.rs index 0b7ef8917e..a437041659 100644 --- a/system-parachains/asset-hubs/asset-hub-polkadot/src/lib.rs +++ b/system-parachains/asset-hubs/asset-hub-polkadot/src/lib.rs @@ -89,7 +89,7 @@ use frame_support::{ parameter_types, traits::{ AsEnsureOriginWithArg, ConstBool, ConstU32, ConstU64, ConstU8, EitherOfDiverse, Equals, - InstanceFilter, OnRuntimeUpgrade, TransformOrigin, + InstanceFilter, TransformOrigin, }, weights::{ConstantMultiplier, Weight}, PalletId, @@ -884,19 +884,13 @@ pub type UncheckedExtrinsic = generic::UncheckedExtrinsic; /// Migrations to apply on runtime upgrade. pub type Migrations = ( - frame_support::migrations::VersionedMigration<0, 1, UniquesMigration, Uniques, RocksDbWeight>, + UniquesMigration, // unreleased cumulus_pallet_xcmp_queue::migration::v4::MigrationToV4, ); /// Migration for Uniques to V1 -pub struct UniquesMigration; - -impl OnRuntimeUpgrade for UniquesMigration { - fn on_runtime_upgrade() -> Weight { - pallet_uniques::migration::migrate_to_v1::>() - } -} +pub type UniquesMigration = pallet_uniques::migration::MigrateV0ToV1; /// Executive: handles dispatch to the various modules. pub type Executive = frame_executive::Executive<