metaplex-foundation / SolanaKT

This is a open source library on kotlin for Solana protocol.
MIT License
69 stars 37 forks source link

Issue with creating receiver address Token Address #63

Open HemangiVekaria opened 2 years ago

HemangiVekaria commented 2 years ago

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 commented 2 years ago

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

ajamaica commented 2 years ago

This is now fixed on https://github.com/metaplex-foundation/SolanaKT/pull/107