diff --git a/src/utils/tokens/index.js b/src/utils/tokens/index.js index 600fe3e..d391cd6 100644 --- a/src/utils/tokens/index.js +++ b/src/utils/tokens/index.js @@ -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({