@@ -422,7 +422,7 @@ pub mod pallet {
422422 ///
423423 /// This call is not available to `Invulnerable` collators.
424424 #[ pallet:: call_index( 3 ) ]
425- #[ pallet:: weight( T :: WeightInfo :: register_as_candidate( T :: MaxCandidates :: get ( ) ) ) ]
425+ #[ pallet:: weight( T :: WeightInfo :: register_as_candidate( ) ) ]
426426 pub fn register_as_candidate ( origin : OriginFor < T > ) -> DispatchResultWithPostInfo {
427427 let _who = ensure_signed ( origin) ?;
428428 // Always fail with permission error to enforce new workflow
@@ -536,7 +536,7 @@ pub mod pallet {
536536 ///
537537 /// This call is not available to `Invulnerable` collators or exisiting candidates.
538538 #[ pallet:: call_index( 9 ) ]
539- #[ pallet:: weight( T :: WeightInfo :: remove_invulnerable ( T :: MaxInvulnerables :: get ( ) ) ) ]
539+ #[ pallet:: weight( T :: WeightInfo :: apply_for_candidacy ( ) ) ]
540540 pub fn apply_for_candidacy ( origin : OriginFor < T > ) -> DispatchResultWithPostInfo {
541541 let who = ensure_signed ( origin) ?;
542542
@@ -603,7 +603,7 @@ pub mod pallet {
603603 /// This will remove the application from pending status and immediately add the account
604604 /// to the candidates list, making them eligible for collator selection.
605605 #[ pallet:: call_index( 11 ) ]
606- #[ pallet:: weight( T :: WeightInfo :: register_as_candidate ( T :: MaxCandidates :: get( ) ) ) ]
606+ #[ pallet:: weight( T :: WeightInfo :: approve_application ( T :: MaxCandidates :: get( ) ) ) ]
607607 pub fn approve_application (
608608 origin : OriginFor < T > ,
609609 who : T :: AccountId ,
@@ -638,15 +638,15 @@ pub mod pallet {
638638 } ) ;
639639
640640 Self :: deposit_event ( Event :: CandidateAdded ( who, deposit) ) ;
641- Ok ( Some ( T :: WeightInfo :: register_as_candidate ( current_count as u32 ) ) . into ( ) )
641+ Ok ( Some ( T :: WeightInfo :: approve_application ( current_count as u32 ) ) . into ( ) )
642642 }
643643
644644 /// Reject a pending candidacy application and unreserve the bond.
645645 ///
646646 /// This will remove the application from pending status and unreserve the
647647 /// applicant's bond, effectively denying their candidacy request.
648648 #[ pallet:: call_index( 12 ) ]
649- #[ pallet:: weight( T :: WeightInfo :: withdraw_bond ( ) ) ]
649+ #[ pallet:: weight( T :: WeightInfo :: reject_application ( ) ) ]
650650 pub fn reject_application (
651651 origin : OriginFor < T > ,
652652 who : T :: AccountId ,
@@ -672,7 +672,7 @@ pub mod pallet {
672672 /// This call will fail if removing the candidate would bring the total
673673 /// number of candidates below the minimum threshold.
674674 #[ pallet:: call_index( 13 ) ]
675- #[ pallet:: weight( T :: WeightInfo :: remove_invulnerable ( T :: MaxInvulnerables :: get( ) ) ) ]
675+ #[ pallet:: weight( T :: WeightInfo :: kick_candidate ( T :: MaxInvulnerables :: get( ) ) ) ]
676676 pub fn kick_candidate (
677677 origin : OriginFor < T > ,
678678 who : T :: AccountId ,
@@ -686,7 +686,7 @@ pub mod pallet {
686686 Self :: slash_non_candidate ( & who) ;
687687
688688 Self :: deposit_event ( Event :: CandidateKickedByCouncil ( who) ) ;
689- Ok ( Some ( T :: WeightInfo :: leave_intent ( current_count as u32 ) ) . into ( ) )
689+ Ok ( Some ( T :: WeightInfo :: kick_candidate ( current_count as u32 ) ) . into ( ) )
690690 }
691691 }
692692
0 commit comments