Skip to content

Commit

Permalink
complete the threshold check (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
QiLOL authored Jan 12, 2022
1 parent 94726c6 commit b6b3e2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion programs/multisig/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pub mod serum_multisig {
nonce: u8,
) -> Result<()> {
assert_unique_owners(&owners)?;
require!(threshold > 0, InvalidThreshold);
require!(threshold > 0 && threshold <= owners.len() as u64, InvalidThreshold);
require!(!owners.is_empty(), InvalidOwnersLen);

let multisig = &mut ctx.accounts.multisig;
Expand Down

0 comments on commit b6b3e2f

Please sign in to comment.