Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseAbram committed Jul 16, 2024
1 parent f633109 commit 09bcd5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pallets/parameters/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ pub mod module {
MaxInstructionsPerPrograms::<T>::put(self.max_instructions_per_programs);
let signer_info =
SignersSize { signers_size: self.signers_size, threshold: self.threshold };
SignersInfo::<T>::put(&signer_info);
SignersInfo::<T>::put(signer_info);
}
}

Expand Down
4 changes: 2 additions & 2 deletions pallets/staking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ pub mod pallet {
/// The weight information of this pallet.
type WeightInfo: WeightInfo;
}

/// A unique identifier of a subgroup or partition of validators that have the same set of
/// threshold shares.
pub type SubgroupId = u8;
Expand Down Expand Up @@ -426,7 +426,7 @@ pub mod pallet {
let mut next_signer_up = &current_signers[0].clone();
let mut index;
// loops to find signer in validator that is not already signer
while current_signers.contains(&next_signer_up) {
while current_signers.contains(next_signer_up) {
index = randomness.next_u32() % validators.len() as u32;
next_signer_up = &validators[index as usize];
}
Expand Down

0 comments on commit 09bcd5a

Please sign in to comment.