I am switching my app from wallet-adapter to wallet-standard. Based on my reading, the wallets that support wallet-standard will be automatically detected.
So I pass an empty array to the wallets
props (probably should become an optional prop in the future):
import {
ConnectionProvider,
WalletProvider,
} from "@solana/wallet-adapter-react";
import { WalletModalProvider } from "@solana/wallet-adapter-react-ui";
<ConnectionProvider ...>
<WalletProvider wallets={[]}>
<WalletModalProvider>
...
</WalletModalProvider>
</WalletProvider>
</ConnectionProvider>
According to this tweet, a few wallets already support the wallet standard. I have the latest version of all their extensions installed in my browser (up-to-date Brave).
However, when I click to connect the wallet, only Backpack is detected. The others seem to only get detected if I add their adapters back in.
I am not sure if I am missing any additional configuration. I have noticed there are other packages, such as @wallet-standard/app
or @wallet-standard/react
but not sure how they figure into this. I have seen this example in wallet-standard
repo as well but I am not sure how it can be used in conjunction with @solana/wallet-adapter-react-ui
. (And inexplicably, it seems to be still using the wallet adapters.)