Replace bool by Result<(), dispatchError> for checks
Compare changes
- Hugo Trentesaux authored
+ 36
− 52
@@ -117,10 +117,8 @@ pub mod pallet {
@@ -132,7 +130,6 @@ where
@@ -146,63 +143,50 @@ where
@@ -210,27 +194,27 @@ impl<T: Config<I>, I: 'static> pallet_certification::traits::CheckCertAllowed<Id
@@ -247,7 +231,7 @@ impl<T: Config<I>, I: 'static> sp_membership::traits::CheckIdtyAllowedMembership
@@ -261,7 +245,7 @@ impl<T: Config<I>, I: 'static> sp_membership::traits::CheckIdtyAllowedMembership