Closed kierangillen closed 2 years ago
Hmm. So the default timeout should be 10 seconds: https://github.com/solana-labs/wallet-adapter/blob/e89adf6cdc59ca33db0fcc3a27841a1f94a8b8ed/packages/wallets/sollet/src/base.ts#L51
The timeout is set here: https://github.com/solana-labs/wallet-adapter/blob/e89adf6cdc59ca33db0fcc3a27841a1f94a8b8ed/packages/wallets/sollet/src/base.ts#L157-L158
This hack is unfortunate but Sollet sucks and there is no way to tell if the window has been closed, unlike Phantom and most other wallets.
Is any config being passed to the adapter?
I was using your example settings:
new SolletExtensionWalletAdapter({ network }),
We could just chalk this up to an issue with Sollet and move on. Thanks for looking into it, and probably good to be aware of it.
Describe the bug When connecting with Sollet extension, Sollet will display a "Allow this site to access your Solana account?" page with a
Connect
CTA. If you don't click theConnect
button immediately the request fails withWalletTimeoutError
.To Reproduce Steps to reproduce the behavior:
WalletTimeoutError
Connect
quickly the request works as expectedDesktop:
0.3.1