@@ -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