Skip to content

Commit

Permalink
Remove Claims Migration (#923)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikiquantum authored Aug 24, 2022
1 parent b3cbdef commit 06d5d09
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 100 deletions.
19 changes: 0 additions & 19 deletions pallets/claims/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,6 @@ pub use crate::traits::WeightInfo as PalletWeightInfo;
// Re-export in crate namespace (for runtime construction)
pub use pallet::*;

mod migration;

// ----------------------------------------------------------------------------
// Traits and types declaration
// ----------------------------------------------------------------------------
Expand Down Expand Up @@ -278,23 +276,6 @@ pub mod pallet {
// Pallet lifecycle hooks
// ----------------------------------------------------------------------------

#[pallet::hooks]
impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {
fn on_runtime_upgrade() -> frame_support::weights::Weight {
migration::root_hashes::migrate::<T>()
}

#[cfg(feature = "try-runtime")]
fn pre_upgrade() -> Result<(), &'static str> {
migration::root_hashes::pre_migrate::<T>()
}

#[cfg(feature = "try-runtime")]
fn post_upgrade() -> Result<(), &'static str> {
migration::root_hashes::post_migrate::<T>()
}
}

// ------------------------------------------------------------------------
// Pallet errors
// ------------------------------------------------------------------------
Expand Down
81 changes: 0 additions & 81 deletions pallets/claims/src/migration.rs

This file was deleted.

0 comments on commit 06d5d09

Please sign in to comment.