Skip to content
Snippets Groups Projects
Unverified Commit e6a7cc02 authored by bgallois's avatar bgallois
Browse files

fix distance error naming pallet duniter-wot

parent 9b565f77
No related branches found
No related tags found
No related merge requests found
...@@ -110,7 +110,7 @@ pub mod pallet { ...@@ -110,7 +110,7 @@ pub mod pallet {
/// Insufficient certifications received to claim membership. /// Insufficient certifications received to claim membership.
NotEnoughCertsToClaimMembership, NotEnoughCertsToClaimMembership,
/// Distance has not received a positive evaluation. /// Distance has not received a positive evaluation.
DistanceNotOK, DistanceNotOk,
/// Identity is not allowed to request membership. /// Identity is not allowed to request membership.
IdtyNotAllowedToRequestMembership, IdtyNotAllowedToRequestMembership,
/// Identity not allowed to renew membership. /// Identity not allowed to renew membership.
...@@ -298,7 +298,7 @@ impl<T: Config<I>, I: 'static> sp_membership::traits::CheckMembershipCallAllowed ...@@ -298,7 +298,7 @@ impl<T: Config<I>, I: 'static> sp_membership::traits::CheckMembershipCallAllowed
); );
ensure!( ensure!(
T::IsDistanceOk::is_distance_ok(idty_index), T::IsDistanceOk::is_distance_ok(idty_index),
Error::<T, I>::DistanceNotOK, Error::<T, I>::DistanceNotOk,
); );
Ok(()) Ok(())
} }
...@@ -312,7 +312,7 @@ impl<T: Config<I>, I: 'static> sp_membership::traits::CheckMembershipCallAllowed ...@@ -312,7 +312,7 @@ impl<T: Config<I>, I: 'static> sp_membership::traits::CheckMembershipCallAllowed
); );
ensure!( ensure!(
T::IsDistanceOk::is_distance_ok(idty_index), T::IsDistanceOk::is_distance_ok(idty_index),
Error::<T, I>::DistanceNotOK, Error::<T, I>::DistanceNotOk,
); );
} else { } else {
return Err(Error::<T, I>::IdtyNotFound.into()); return Err(Error::<T, I>::IdtyNotFound.into());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment