mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 10:31:03 +00:00
Remove migration code. (#5291)
* Remove migration code. * Fix cargo * Bump spec version
This commit is contained in:
@@ -95,7 +95,6 @@ use frame_support::{
|
||||
};
|
||||
use sp_phragmen::ExtendedBalance;
|
||||
use frame_system::{self as system, ensure_signed, ensure_root};
|
||||
use frame_support::traits::MigrateAccount;
|
||||
|
||||
const MODULE_ID: LockIdentifier = *b"phrelect";
|
||||
|
||||
@@ -474,14 +473,6 @@ decl_event!(
|
||||
}
|
||||
);
|
||||
|
||||
impl<T: Trait> MigrateAccount<T::AccountId> for Module<T> {
|
||||
fn migrate_account(a: &T::AccountId) {
|
||||
if StakeOf::<T>::migrate_key_from_blake(a).is_some() {
|
||||
VotesOf::<T>::migrate_key_from_blake(a);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl<T: Trait> Module<T> {
|
||||
/// Attempts to remove a member `who`. If a runner up exists, it is used as the replacement.
|
||||
/// Otherwise, `Ok(false)` is returned to signal the caller.
|
||||
@@ -825,7 +816,7 @@ mod tests {
|
||||
type Version = ();
|
||||
type ModuleToIndex = ();
|
||||
type AccountData = pallet_balances::AccountData<u64>;
|
||||
type MigrateAccount = (); type OnNewAccount = ();
|
||||
type OnNewAccount = ();
|
||||
type OnKilledAccount = ();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user