Skip to content
Snippets Groups Projects
Commit 3e644842 authored by Benjamin Gallois's avatar Benjamin Gallois Committed by Cédric Moreau
Browse files

Fix #185 (!237)

* fix #185
parent f562a95b
No related branches found
No related tags found
1 merge request!237Fix #185
Pipeline #35830 waiting for manual action
......@@ -55,8 +55,8 @@ where
for offender in offenders {
if let Some(member_id) = T::MemberIdOf::convert(offender.offender.0.clone()) {
Blacklist::<T>::mutate(|blacklist| {
if !blacklist.contains(&member_id) {
blacklist.push(member_id);
if let Err(index) = blacklist.binary_search(&member_id) {
blacklist.insert(index, member_id);
Self::deposit_event(Event::MemberAddedToBlacklist {
member: member_id,
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment