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

Commit d3de202

Browse files
authored
token-2022: [OS-SPL-ADV-02] Fix instruction creator (#5900)
* token-2022: [OS-SPL-ADV-02] Fix instruction creator * Also make the multisig signers readonly
1 parent 2883813 commit d3de202

File tree

1 file changed

+2
-2
lines changed
  • token/program-2022/src/extension/confidential_transfer_fee

1 file changed

+2
-2
lines changed

token/program-2022/src/extension/confidential_transfer_fee/instruction.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ pub fn inner_withdraw_withheld_tokens_from_mint(
319319
));
320320

321321
for multisig_signer in multisig_signers.iter() {
322-
accounts.push(AccountMeta::new(**multisig_signer, false));
322+
accounts.push(AccountMeta::new_readonly(**multisig_signer, true));
323323
}
324324

325325
Ok(encode_instruction(
@@ -411,7 +411,7 @@ pub fn inner_withdraw_withheld_tokens_from_accounts(
411411
));
412412

413413
for multisig_signer in multisig_signers.iter() {
414-
accounts.push(AccountMeta::new(**multisig_signer, false));
414+
accounts.push(AccountMeta::new_readonly(**multisig_signer, true));
415415
}
416416

417417
for source in sources.iter() {

0 commit comments

Comments
 (0)