diff --git a/sdk-libs/token-pinocchio/src/instruction/transfer_interface.rs b/sdk-libs/token-pinocchio/src/instruction/transfer_interface.rs index e7f0e0f085..7fe0f4e2d7 100644 --- a/sdk-libs/token-pinocchio/src/instruction/transfer_interface.rs +++ b/sdk-libs/token-pinocchio/src/instruction/transfer_interface.rs @@ -132,7 +132,7 @@ impl<'info> TransferInterfaceCpi<'info> { amount: self.amount, authority: self.authority, system_program: self.system_program, - fee_payer: None, + fee_payer: Some(self.payer), } .invoke(), @@ -228,7 +228,7 @@ impl<'info> TransferInterfaceCpi<'info> { amount: self.amount, authority: self.authority, system_program: self.system_program, - fee_payer: None, + fee_payer: Some(self.payer), } .invoke_signed(signers), diff --git a/sdk-libs/token-sdk/src/instruction/transfer_interface.rs b/sdk-libs/token-sdk/src/instruction/transfer_interface.rs index 83720915e9..2fa38c0e63 100644 --- a/sdk-libs/token-sdk/src/instruction/transfer_interface.rs +++ b/sdk-libs/token-sdk/src/instruction/transfer_interface.rs @@ -134,7 +134,7 @@ impl TransferInterface { amount: self.amount, authority: self.authority, max_top_up: self.max_top_up, - fee_payer: None, + fee_payer: Some(self.payer), } .instruction(), @@ -344,6 +344,8 @@ impl<'info> TransferInterfaceCpi<'info> { self.source_account, self.destination_account, self.authority, + self.system_program, + self.payer, ]; invoke(&instruction, &account_infos) } @@ -414,6 +416,8 @@ impl<'info> TransferInterfaceCpi<'info> { self.source_account, self.destination_account, self.authority, + self.system_program, + self.payer, ]; invoke_signed(&instruction, &account_infos, signer_seeds) }