From e589af1200250e313167580db16c0b4b1723ee11 Mon Sep 17 00:00:00 2001
From: cgeek <cem.moreau@gmail.com>
Date: Wed, 17 Jan 2024 13:19:58 +0100
Subject: [PATCH] feat(#173): docstring for calls

---
 pallets/smith-members/src/lib.rs | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/pallets/smith-members/src/lib.rs b/pallets/smith-members/src/lib.rs
index d02cfb788..1c7742f8f 100644
--- a/pallets/smith-members/src/lib.rs
+++ b/pallets/smith-members/src/lib.rs
@@ -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(
-- 
GitLab