Skip to content
Snippets Groups Projects
Commit e589af12 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

feat(#173): docstring for calls

parent a1cff7e3
No related branches found
No related tags found
1 merge request!228Resolve "Améliorations pour smith-members"
......@@ -280,6 +280,7 @@ pub mod pallet {
#[pallet::call]
impl<T: Config> Pallet<T> {
/// Invite a WoT member to try becoming a Smith
#[pallet::call_index(0)]
#[pallet::weight(T::WeightInfo::invite_smith())]
pub fn invite_smith(
......@@ -294,6 +295,7 @@ pub mod pallet {
Ok(().into())
}
/// Accept an invitation (must have been invited first)
#[pallet::call_index(1)]
#[pallet::weight(T::WeightInfo::accept_invitation())]
pub fn accept_invitation(origin: OriginFor<T>) -> DispatchResultWithPostInfo {
......@@ -305,6 +307,7 @@ pub mod pallet {
Ok(().into())
}
/// Certify an invited smith which can lead the certified to become a Smith
#[pallet::call_index(2)]
#[pallet::weight(T::WeightInfo::certify_smith())]
pub fn certify_smith(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment