Turn off automatically creating token accounts when an spl token account is provided

This commit is contained in:
Nathaniel Parke 2021-03-05 14:08:08 +08:00
parent cf8647f57e
commit 42f92c2361
1 changed files with 1 additions and 9 deletions

View File

@ -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({