Skip to content

Commit

Permalink
bug fix: handle empty public keys correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
brentstone committed May 1, 2024
1 parent 1bf0c9c commit 98d5639
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/sdk/src/tx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3272,7 +3272,7 @@ pub async fn build_update_account(

Some(threshold)
} else {
let invalid_too_few_pks: bool = (public_keys.is_empty()
let invalid_too_few_pks = (!public_keys.is_empty()
&& public_keys.len() < account.threshold as usize)
|| (account.get_all_public_keys().len()
< account.threshold as usize);
Expand Down

0 comments on commit 98d5639

Please sign in to comment.