pass mint to transfer

This commit is contained in:
Maximilian Schneider 2024-11-08 15:35:16 +01:00
parent 092d6da2aa
commit 16feea9995
1 changed files with 2 additions and 2 deletions

View File

@ -119,7 +119,7 @@ pub fn transfer<'a>(
&[],
amount,
)?;
let transfer_account_infos = [source.clone(), destination.clone(), program.clone()];
let transfer_account_infos = [source.clone(), destination.clone(), program.clone(), authority.clone()];
if signer_seeds.is_empty() {
invoke(&transfer_ix, &transfer_account_infos)
} else {
@ -140,7 +140,7 @@ pub fn transfer<'a>(
amount,
mint_parsed.base.decimals,
)?;
let transfer_account_infos = [source.clone(), destination.clone(), program.clone()];
let transfer_account_infos = [source.clone(), destination.clone(), mint.clone(), program.clone(), authority.clone()];
if signer_seeds.is_empty() {
invoke(&transfer_ix, &transfer_account_infos)
} else {