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

getTokenAccountsByOwner only works with one matching token account #61

Open
samdowd opened this issue Jan 19, 2022 · 1 comment
Open
Assignees

Comments

@samdowd
Copy link
Contributor

samdowd commented Jan 19, 2022

If the owner account has 0 token accounts for that mint: it crashes.
If the owner account has 2+ token accounts for that mint: it only returns one.

The offending line: https://github.com/ajamaica/Solana.kt/blob/master/solana/src/main/java/com/solana/api/getTokenAccountsByOwner.kt#L33

@ajamaica
Copy link
Contributor

This is definitely something to fix.

@ajamaica ajamaica self-assigned this Feb 15, 2022
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