-
Notifications
You must be signed in to change notification settings - Fork 473
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TokenAccountNotFoundError #182
Comments
I understand your point... However, I disagree on the way to solve the problem. Let's say there is a merchant receiving the token. It has first to create the token he wants to receive, once and for all. Otherwise, it could be like a tax if after receiving a payment, the merchant delete his token account (and receive some sol for closing the account). Then next customer create again the merchant token account, etc. |
I hadn't thought of that, thank you. |
You're welcome. Happy to have been of some help :-) |
What if the merchant provides a TokenAccount instead of a wallet address? this is our case and it fails since the recipient is already a token account |
Hey There, great question! |
It uses this package to send tokens to users and verify transactions.
But when I send tokens to a user who has never had a token account, I get a "TokenAccountNotFoundError" error.
To solve this problem, the
createTransfer
file used in;How to convert the function "getAssociatedTokenAddress" to the function "getOrCreateAssociatedTokenAccount"?
The text was updated successfully, but these errors were encountered: