Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

Commit

Permalink
add optional migration
Browse files Browse the repository at this point in the history
  • Loading branch information
aurexav committed Mar 28, 2021
1 parent e808eec commit 31499d6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion frame/bridge/crab/issuing/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pub mod pallet {
// --- darwinia ---
use super::*;

// Advance type
// Generic type
pub type AccountId<T> = <T as frame_system::Config>::AccountId;
pub type RingBalance<T> = <RingCurrency<T> as Currency<AccountId<T>>>::Balance;
type RingCurrency<T> = <T as Config>::RingCurrency;
Expand Down Expand Up @@ -103,3 +103,11 @@ pub mod pallet {
#[pallet::call]
impl<T: Config> Pallet<T> {}
}

pub mod migration {
const OLD_PALLET_NAME: &[u8] = b"DarwiniaCrabIssuing";

pub fn migrate(new_pallet_name: &[u8]) {
frame_support::migration::move_pallet(OLD_PALLET_NAME, new_pallet_name);
}
}

0 comments on commit 31499d6

Please sign in to comment.