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

fix distance error naming pallet duniter-wot

parent 0e36dedd
No related branches found
No related tags found
No related merge requests found
Pipeline #34657 passed
......@@ -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());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment