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

Issue with creating receiver address Token Address #63

Open
HemangiVekaria opened this issue Feb 18, 2022 · 2 comments
Open

Issue with creating receiver address Token Address #63

HemangiVekaria opened this issue Feb 18, 2022 · 2 comments

Comments

@HemangiVekaria
Copy link

I am trying to send spl token to other user but that user have no token account address. So i want to create it by using Action.createTokenAccount method.
image
I am doing in this way but it's not working. Anyone can help me with this?

@HemangiVekaria
Copy link
Author

I solved this today. In System.createAccount() method for fromPublicKey used account.publicKey(sender's publickey) insted of destination and it worked.

@ajamaica
Copy link
Contributor

This is now fixed on #107

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

2 participants