Skip to content

Commit

Permalink
remove old migrations (#1937)
Browse files Browse the repository at this point in the history
  • Loading branch information
xlc authored Mar 3, 2022
1 parent b6cf9f8 commit 6faa729
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 25 deletions.
10 changes: 2 additions & 8 deletions runtime/acala/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1675,14 +1675,8 @@ pub type SignedPayload = generic::SignedPayload<Call, SignedExtra>;
/// Extrinsic type that has already been checked.
pub type CheckedExtrinsic = generic::CheckedExtrinsic<AccountId, Call, SignedExtra>;
/// Executive: handles dispatch to the various modules.
pub type Executive = frame_executive::Executive<
Runtime,
Block,
frame_system::ChainContext<Runtime>,
Runtime,
AllPalletsWithSystem,
XcmInterfaceMigrationV1,
>;
pub type Executive =
frame_executive::Executive<Runtime, Block, frame_system::ChainContext<Runtime>, Runtime, AllPalletsWithSystem, ()>;

// Migration for scheduler pallet to move from a plain Call to a CallOrHash.
pub struct XcmInterfaceMigrationV1;
Expand Down
19 changes: 2 additions & 17 deletions runtime/mandala/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1798,23 +1798,8 @@ pub type SignedPayload = generic::SignedPayload<Call, SignedExtra>;
/// Extrinsic type that has already been checked.
pub type CheckedExtrinsic = generic::CheckedExtrinsic<AccountId, Call, SignedExtra>;
/// Executive: handles dispatch to the various modules.
pub type Executive = frame_executive::Executive<
Runtime,
Block,
frame_system::ChainContext<Runtime>,
Runtime,
AllPalletsWithSystem,
XcmInterfaceMigrationV1,
>;

// Migration for scheduler pallet to move from a plain Call to a CallOrHash.
pub struct XcmInterfaceMigrationV1;

impl OnRuntimeUpgrade for XcmInterfaceMigrationV1 {
fn on_runtime_upgrade() -> frame_support::weights::Weight {
module_xcm_interface::migrations::v1::migrate::<Runtime, XcmInterface>()
}
}
pub type Executive =
frame_executive::Executive<Runtime, Block, frame_system::ChainContext<Runtime>, Runtime, AllPalletsWithSystem, ()>;

construct_runtime! {
pub enum Runtime where
Expand Down

0 comments on commit 6faa729

Please sign in to comment.