pallet_messenger/migrations/
v0_to_v1.rs1use crate::{Config, Pallet};
4use core::marker::PhantomData;
5use frame_support::migrations::VersionedMigration;
6use frame_support::traits::UncheckedOnRuntimeUpgrade;
7use frame_support::weights::Weight;
8
9pub type VersionCheckedMigrateDomainsV0ToV1<T> = VersionedMigration<
10 0,
11 1,
12 VersionUncheckedMigrateV0ToV1<T>,
13 Pallet<T>,
14 <T as frame_system::Config>::DbWeight,
15>;
16
17pub struct VersionUncheckedMigrateV0ToV1<T>(PhantomData<T>);
18impl<T: Config> UncheckedOnRuntimeUpgrade for VersionUncheckedMigrateV0ToV1<T> {
19 fn on_runtime_upgrade() -> Weight {
20 Weight::zero()
21 }
22}