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

fix #185

parent 93853b2d
No related branches found
No related tags found
No related merge requests found
Pipeline #35766 passed
......@@ -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.
Please register or to comment