Turn off automatically creating token accounts when an spl token account is provided
This commit is contained in:
parent
cf8647f57e
commit
42f92c2361
|
@ -246,15 +246,7 @@ export async function transferTokens({
|
|||
memo,
|
||||
});
|
||||
}
|
||||
return await createAndTransferToAccount({
|
||||
connection,
|
||||
owner,
|
||||
sourcePublicKey,
|
||||
destinationPublicKey,
|
||||
amount,
|
||||
memo,
|
||||
mint,
|
||||
});
|
||||
throw new Error('Destination token account does not exist.');
|
||||
}
|
||||
|
||||
function createTransferBetweenSplTokenAccountsInstruction({
|
||||
|
|
Loading…
Reference in New Issue