Skip to content
Snippets Groups Projects
Commit f3bab166 authored by Hugo Trentesaux's avatar Hugo Trentesaux
Browse files

rename error DistanceKO to DistanceNotOK

parent 125ce842
No related branches found
No related tags found
No related merge requests found
......@@ -110,7 +110,7 @@ pub mod pallet {
/// Not enough certifications received to claim membership
NotEnoughCertsToClaimMembership,
/// Distance has not been evaluated positively
DistanceKO,
DistanceNotOK,
/// Identity not allowed to request membership
IdtyNotAllowedToRequestMembership,
/// Identity not allowed to renew membership
......@@ -275,7 +275,7 @@ impl<T: Config<I>, I: 'static> sp_membership::traits::CheckMembershipCallAllowed
);
ensure!(
T::IsDistanceOk::is_distance_ok(idty_index),
Error::<T, I>::DistanceKO,
Error::<T, I>::DistanceNotOK,
);
Ok(())
}
......@@ -289,7 +289,7 @@ impl<T: Config<I>, I: 'static> sp_membership::traits::CheckMembershipCallAllowed
);
ensure!(
T::IsDistanceOk::is_distance_ok(idty_index),
Error::<T, I>::DistanceKO,
Error::<T, I>::DistanceNotOK,
);
} else {
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