Skip to content
Snippets Groups Projects
Commit ae77a3c4 authored by Cédric Moreau's avatar Cédric Moreau Committed by Pascal Engélibert
Browse files

fix(#108): comparison was inverted

parent 0eea07d4
No related branches found
No related tags found
1 merge request!158Fix/108/certification expiry
Pipeline #19606 failed
......@@ -471,7 +471,7 @@ pub mod pallet {
let mut removed = false;
CertsByReceiver::<T, I>::mutate_exists(receiver, |issuers_opt| {
let issuers = issuers_opt.get_or_insert(Vec::with_capacity(0));
if let Ok(index) = issuers.binary_search_by(|(issuer_, _)| issuer.cmp(issuer_)) {
if let Ok(index) = issuers.binary_search_by(|(issuer_, _)| issuer_.cmp(&issuer)) {
if let Some(block_number) = block_number_opt {
if let Some((_, removable_on)) = issuers.get(index) {
if *removable_on == block_number {
......
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