anza-xyz / wallet-adapter

Modular TypeScript wallet adapters and components for Solana applications.
https://anza-xyz.github.io/wallet-adapter/
Apache License 2.0
1.44k stars 906 forks source link

No way to filter out wallet-standard wallets or the mobile wallet adapter on `<WalletProvider>` #943

Open billythedummy opened 3 months ago

billythedummy commented 3 months ago

Is your feature request related to a problem? Please describe. <WalletProvider> currently does not provide a way to filter out wallet-standard wallets or the mobile wallet adapter. This can be useful if the wallet suddenly stopped working with the dapp for some reason, so that users don't get a broken experience.

Describe the solution you'd like Provide a prop that enables filtering out of wallets. Perhaps a predicate function prop that returns if the wallet should be included or not is most general.

Describe alternatives you've considered None

Additional context Backpack suddenly started returning 403 forbidden for calls to wallet.sendTransaction(). We wish to disable it temporarily while we work on a fix but we can't because it's a standard wallet.

ghini10 commented 1 month ago