Skip to content

Commit

Permalink
remove moonbase migration (#2807)
Browse files Browse the repository at this point in the history
  • Loading branch information
RomarQ authored May 21, 2024
1 parent cb45c95 commit f9ce6c4
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions runtime/moonbase/src/migrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,13 @@

//! # Moonbase specific Migrations
use crate::Runtime;
use frame_support::{traits::OnRuntimeUpgrade, weights::Weight};
use pallet_migrations::{GetMigrations, Migration};
use pallet_parachain_staking::migrations::MultiplyRoundLenBy2;
use sp_std::{prelude::*, vec};

pub struct MoonbaseMigrations;

impl GetMigrations for MoonbaseMigrations {
fn get_migrations() -> Vec<Box<dyn Migration>> {
vec![Box::new(PalletStakingMultiplyRoundLenBy2)]
}
}

// This migration should only be applied to runtimes with async backing enabled
pub struct PalletStakingMultiplyRoundLenBy2;
impl Migration for PalletStakingMultiplyRoundLenBy2 {
fn friendly_name(&self) -> &str {
"MM_MultiplyRoundLenBy2"
}

fn migrate(&self, _available_weight: Weight) -> Weight {
MultiplyRoundLenBy2::<Runtime>::on_runtime_upgrade()
vec![]
}
}

0 comments on commit f9ce6c4

Please sign in to comment.