diff --git a/programs/manifest/src/program/instruction_builders/global_withdraw_instruction.rs b/programs/manifest/src/program/instruction_builders/global_withdraw_instruction.rs index 0759436c3..e5fcd23c0 100644 --- a/programs/manifest/src/program/instruction_builders/global_withdraw_instruction.rs +++ b/programs/manifest/src/program/instruction_builders/global_withdraw_instruction.rs @@ -20,7 +20,7 @@ pub fn global_withdraw_instruction( Instruction { program_id: crate::id(), accounts: vec![ - AccountMeta::new(*payer, true), + AccountMeta::new_readonly(*payer, true), AccountMeta::new(global, false), AccountMeta::new_readonly(*mint, false), AccountMeta::new(global_vault, false), diff --git a/programs/manifest/src/program/instruction_builders/withdraw_instruction.rs b/programs/manifest/src/program/instruction_builders/withdraw_instruction.rs index 440da4c41..0c6ab3f0f 100644 --- a/programs/manifest/src/program/instruction_builders/withdraw_instruction.rs +++ b/programs/manifest/src/program/instruction_builders/withdraw_instruction.rs @@ -23,7 +23,7 @@ pub fn withdraw_instruction( Instruction { program_id: crate::id(), accounts: vec![ - AccountMeta::new(*payer, true), + AccountMeta::new_readonly(*payer, true), AccountMeta::new(*market, false), AccountMeta::new(*trader_token_account, false), AccountMeta::new(vault_address, false), diff --git a/programs/manifest/src/validation/loaders.rs b/programs/manifest/src/validation/loaders.rs index 2879df626..f79739dff 100644 --- a/programs/manifest/src/validation/loaders.rs +++ b/programs/manifest/src/validation/loaders.rs @@ -683,7 +683,7 @@ impl<'a, 'info> GlobalWithdrawContext<'a, 'info> { pub fn load(accounts: &'a [AccountInfo<'info>]) -> Result { let account_iter: &mut Iter> = &mut accounts.iter(); - let payer: Signer = Signer::new_payer(next_account_info(account_iter)?)?; + let payer: Signer = Signer::new(next_account_info(account_iter)?)?; let global: ManifestAccountInfo = ManifestAccountInfo::::new(next_account_info(account_iter)?)?;