diff --git a/pallets/slow-clap/Cargo.toml b/pallets/slow-clap/Cargo.toml index bd90e83..64c013e 100644 --- a/pallets/slow-clap/Cargo.toml +++ b/pallets/slow-clap/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ghost-slow-clap" -version = "0.3.49" +version = "0.3.50" description = "Applause protocol for the EVM bridge" license.workspace = true authors.workspace = true diff --git a/pallets/slow-clap/src/lib.rs b/pallets/slow-clap/src/lib.rs index d6778e9..f925205 100644 --- a/pallets/slow-clap/src/lib.rs +++ b/pallets/slow-clap/src/lib.rs @@ -9,8 +9,8 @@ use frame_support::{ pallet_prelude::*, traits::{ tokens::fungible::{Inspect, Mutate}, - EstimateNextSessionRotation, Get, OneSessionHandler, ValidatorSet, - ValidatorSetWithIdentification, DisabledValidators, + DisabledValidators, EstimateNextSessionRotation, Get, OneSessionHandler, ValidatorSet, + ValidatorSetWithIdentification, }, WeakBoundedVec, }; @@ -404,7 +404,7 @@ pub mod pallet { .map(|info| info.disabled) .unwrap_or_default() { - return InvalidTransaction::BadSigner.into(); + return InvalidTransaction::BadSigner.into(); } let signature_valid = @@ -645,7 +645,7 @@ impl Pallet { .cloned() .collect::>(); - let disabled_authorities = ClapsInSession::::get(&prev_session_index) + let disabled_authorities = ClapsInSession::::get(&curr_session_index) .values() .filter(|info| info.disabled) .count(); @@ -1116,10 +1116,13 @@ impl Pallet { let mut disabled_validators: BTreeMap = Default::default(); for disabled_index in T::DisabledValidators::disabled_validators().iter() { - let _ = disabled_validators.insert(*disabled_index, SessionAuthorityInfo { - claps: 0u32, - disabled: true, - }); + let _ = disabled_validators.insert( + *disabled_index, + SessionAuthorityInfo { + claps: 0u32, + disabled: true, + }, + ); } ClapsInSession::::set(&session_index, disabled_validators); }