diff --git a/src/state_machine/signer/mod.rs b/src/state_machine/signer/mod.rs index 8306f8fb..e77161bb 100644 --- a/src/state_machine/signer/mod.rs +++ b/src/state_machine/signer/mod.rs @@ -387,7 +387,7 @@ impl Signer { 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) {