From cb6ef553766f8bd5ebb2a7cb0ed997846b2e58ef Mon Sep 17 00:00:00 2001
From: cgeek <cem.moreau@gmail.com>
Date: Sun, 17 Dec 2023 15:23:44 +0100
Subject: [PATCH] feat(smith-members): refact: constants

---
 pallets/smith-members/src/lib.rs | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/pallets/smith-members/src/lib.rs b/pallets/smith-members/src/lib.rs
index 1245ea28e..934a0e4ea 100644
--- a/pallets/smith-members/src/lib.rs
+++ b/pallets/smith-members/src/lib.rs
@@ -102,22 +102,19 @@ pub mod pallet {
             + MaxEncodedLen;
         /// Identifier for an authority-member
         type MemberId: Copy + Ord + MaybeSerializeDeserialize + Parameter;
+        /// Something that gives the IdtyId of an AccountId
+        type IdtyIdOf: Convert<Self::AccountId, Option<Self::IdtyIndex>>;
+        /// Something that gives the IdtyId of an AccountId
+        type IdtyIdOfAuthorityId: Convert<Self::MemberId, Option<Self::IdtyIndex>>;
         /// Maximum number of active certifications by issuer
         #[pallet::constant]
         type MaxByIssuer: Get<u32>;
-        /// Minimum number of certifications to be able to create a smith
-        #[pallet::constant]
-        type MinCertForCreateIdtyRight: Get<u32>;
         /// Minimum number of certifications to become a Smith
         #[pallet::constant]
         type MinCertForMembership: Get<u32>;
         /// Maximum duration of inactivity before a smith is removed
         #[pallet::constant]
         type InactivityMaxDuration: Get<u32>;
-        /// Something that gives the IdtyId of an AccountId
-        type IdtyIdOf: Convert<Self::AccountId, Option<Self::IdtyIndex>>;
-        /// Something that gives the IdtyId of an AccountId
-        type IdtyIdOfAuthorityId: Convert<Self::MemberId, Option<Self::IdtyIndex>>;
     }
 
     /// Events type.
-- 
GitLab