Skip to content
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

Action.sendSPLTokens fails with a destination address of an original account address #132

Open
ToraWu opened this issue Dec 10, 2021 · 2 comments

Comments

@ToraWu
Copy link

ToraWu commented Dec 10, 2021

Describe the bug
Action.sendSPLTokens always fails with a destination address of an original account address (the address of SOL account), no matter if there is an existing associated token address under the original account. The action only works when "to" and "from" are both associated token addresses other than their owners.

Expected behavior
If I did not get the design intention wrong, the action should check if the destination passing in is an associated token address or an original address. If it is an original address, the program will find its associated token address registered under the mint, or create a new one if not existing. However I'm getting errors under both conditions.

I'm using the mint address of USDC in my tests on testnet: CpMah17kQEL2wqyMKt3mZBdTnZbkbfx4nqmQMFDP5vwp

@ajamaica
Copy link
Contributor

I will fix this.

@HemangiVekaria
Copy link

I can not create token account address for receiver. as secret key is needed to sign i can create token account address for myself but for other i cannot. As stated here
image
i should be able to create account for receiver by paying fee from my side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants