Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 25a6a6e

Browse files
committed
spl-token-cli: Sort multisigners
1 parent eb6cd99 commit 25a6a6e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

token/cli/src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1973,7 +1973,8 @@ fn main() {
19731973
eprintln!("error: {}", e);
19741974
exit(1);
19751975
});
1976-
if let Some(multisig_signers) = multisig_signers {
1976+
if let Some(mut multisig_signers) = multisig_signers {
1977+
multisig_signers.sort_by(|(_, lp), (_, rp)| lp.cmp(rp));
19771978
let (signers, pubkeys): (Vec<_>, Vec<_>) = multisig_signers.into_iter().unzip();
19781979
bulk_signers.extend(signers.into_iter().map(Some));
19791980
multisigner_ids = pubkeys;

0 commit comments

Comments
 (0)