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

[bug] Error: failed to get balance of account #3050

Open
bonnusi opened this issue Oct 9, 2024 · 1 comment
Open

[bug] Error: failed to get balance of account #3050

bonnusi opened this issue Oct 9, 2024 · 1 comment
Labels
bug Something isn't working needs review

Comments

@bonnusi
Copy link

bonnusi commented Oct 9, 2024

Link to minimal reproducible example

https://appkit-lab.reown.com/library/solana/

Summary

The error drops with some unclear frequency
Uncaught (in promise) Error: failed to get balance of account [account]: n: Expected the value to satisfy a union of 'type | type', but received: [object Object]

This problem not only for Phantom wallet, also for trust wallet and solflare wallet

Network - solana mainnet

Screen.Recording.2024-10-09.at.18.05.29.mov
image image image

List of related npm package versions

"@reown/appkit": "1.0.7",
"@reown/appkit-adapter-solana": "1.0.7",
"@tanstack/react-query": "5.24.8",
"react": "18.2.0",
"react-dom": "18.2.0",
"vite": "5.2.11",
"@solana/wallet-adapter-backpack": "0.1.14",
"@solana/wallet-adapter-wallets": "0.19.32"

@bonnusi bonnusi added bug Something isn't working needs review labels Oct 9, 2024
@DaveTheFrontEndDev
Copy link

DaveTheFrontEndDev commented Oct 10, 2024

Also encountered this issue, and experienced this intermittently. I have a code example with it set up here https://github.com/DaveTheFrontEndDev/reown-solana-transaction-bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs review
Projects
None yet
Development

No branches or pull requests

2 participants