Skip to content

Commit

Permalink
remove unwrap in signer state machine
Browse files Browse the repository at this point in the history
  • Loading branch information
xoloki committed Dec 13, 2024
1 parent afa8ee7 commit 3a6289d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/state_machine/signer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ impl<SignerType: SignerTrait> Signer<SignerType> {
let mut missing_public_shares = HashSet::new();
let mut missing_private_shares = HashSet::new();
let mut bad_public_shares = HashSet::new();
let threshold: usize = self.threshold.try_into().unwrap();
let threshold: usize = self.threshold.try_into()?;
if let Some(dkg_end_begin) = &self.dkg_end_begin_msg {
for signer_id in &dkg_end_begin.signer_ids {
if let Some(shares) = self.dkg_public_shares.get(signer_id) {
Expand Down

0 comments on commit 3a6289d

Please sign in to comment.