Skip to content

Commit a00d130

Browse files
constconst
authored andcommitted
bring back hotkey swap
1 parent 6b6460d commit a00d130

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

pallets/subtensor/src/lib.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2065,17 +2065,17 @@ pub mod pallet {
20652065
}
20662066

20672067
/// The extrinsic for user to change its hotkey
2068-
///#[pallet::call_index(70)]
2069-
///#[pallet::weight((Weight::from_parts(1_940_000_000, 0)
2070-
///.saturating_add(T::DbWeight::get().reads(272))
2071-
///.saturating_add(T::DbWeight::get().writes(527)), DispatchClass::Operational, Pays::No))]
2072-
///pub fn swap_hotkey(
2073-
/// origin: OriginFor<T>,
2074-
/// hotkey: T::AccountId,
2075-
/// new_hotkey: T::AccountId,
2076-
///) -> DispatchResultWithPostInfo {
2077-
/// Self::do_swap_hotkey(origin, &hotkey, &new_hotkey)
2078-
///}
2068+
#[pallet::call_index(70)]
2069+
#[pallet::weight((Weight::from_parts(1_940_000_000, 0)
2070+
.saturating_add(T::DbWeight::get().reads(272))
2071+
.saturating_add(T::DbWeight::get().writes(527)), DispatchClass::Operational, Pays::No))]
2072+
pub fn swap_hotkey(
2073+
origin: OriginFor<T>,
2074+
hotkey: T::AccountId,
2075+
new_hotkey: T::AccountId,
2076+
) -> DispatchResultWithPostInfo {
2077+
Self::do_swap_hotkey(origin, &hotkey, &new_hotkey)
2078+
}
20792079

20802080
/// The extrinsic for user to change the coldkey associated with their account.
20812081
///

0 commit comments

Comments
 (0)