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

Include Spl Token 2022 in getBalances #728

Conversation

yuli-ferna
Copy link
Contributor

@yuli-ferna yuli-ferna commented Oct 28, 2024

In LibertAI token NTT integration we saw this bug in Solana token selector:

Captura de pantalla 2024-10-28 a la(s) 3 24 13 p m

It shows as disabled when I have a balance in my wallet. It happens because the LibertAI token uses the program spl token 2022, and the SDK only queries the spl token program https://github.com/wormhole-foundation/wormhole-sdk-ts/blob/main/platforms/solana/src/platform.ts#L153-L158.

The solution we found is to include request with the spl token 2022 program id https://github.com/solana-labs/solana-program-library/blob/master/token/js/src/constants.ts#L7

@solanoepalacio
Copy link

@artursapek @nonergodic could you merge this one when possible? thanks

@artursapek artursapek merged commit 074b9aa into wormhole-foundation:main Nov 1, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

3 participants