From de534f4286cd089afbb1a8668da1cadbfb73e608 Mon Sep 17 00:00:00 2001 From: bgallois <benjamin@gallois.cc> Date: Wed, 6 Dec 2023 19:05:31 +0100 Subject: [PATCH] fix distance error naming pallet duniter-wot --- pallets/duniter-wot/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pallets/duniter-wot/src/lib.rs b/pallets/duniter-wot/src/lib.rs index 4fff3f0f0..9f8d6b7c4 100644 --- a/pallets/duniter-wot/src/lib.rs +++ b/pallets/duniter-wot/src/lib.rs @@ -110,7 +110,7 @@ pub mod pallet { /// Insufficient certifications received to claim membership. NotEnoughCertsToClaimMembership, /// Distance has not received a positive evaluation. - DistanceNotOK, + DistanceNotOk, /// Identity is not allowed to request membership. IdtyNotAllowedToRequestMembership, /// Identity not allowed to renew membership. @@ -298,7 +298,7 @@ impl<T: Config<I>, I: 'static> sp_membership::traits::CheckMembershipCallAllowed ); ensure!( T::IsDistanceOk::is_distance_ok(idty_index), - Error::<T, I>::DistanceNotOK, + Error::<T, I>::DistanceNotOk, ); Ok(()) } @@ -312,7 +312,7 @@ impl<T: Config<I>, I: 'static> sp_membership::traits::CheckMembershipCallAllowed ); ensure!( T::IsDistanceOk::is_distance_ok(idty_index), - Error::<T, I>::DistanceNotOK, + Error::<T, I>::DistanceNotOk, ); } else { return Err(Error::<T, I>::IdtyNotFound.into()); -- GitLab