You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've followed the Rainbowkit v2 documentation for creating a custom wallet and adding it to my wallet list. The custom wallet displays in the list of wallets in my app when using the example for createConnector which is getWalletConnectConnector. However, I want to use my own custom connector functions to create a mock wallet for my development environment. When I do so, by replacing getWalletConnectConnector with a fully detailed connector function, there is no error but the wallet does not appear in the list.
Expected Behavior
I want to be able to write a custom connector, provide it to createConnector in my custom wallet, and see that wallet display in the list in my app. We had a working implementing with Rainbowkit/Wagmi v1 so I was expecting to be able to get this working on v2.
Steps To Reproduce
This works as expected (copied from the example in Rainbowkit docs) - the custom wallet displays in the wallet list.
However, attempting to set createConnector with my custom connector prevents the wallet from displaying in the wallet list (note that the app actually loads as connected to the mock wallet, so the connection itself is working OK, its just that it no longer displays in the wallet list)
The connector changed a little bit in v2, which I think is the root issue. Checkout how we implement getWalletConnectConnectorhere to match the connector type, or follow this guide and look at Web3Auth's implementation for their connector implementation that is compatible with v2. https://web3auth.io/docs/guides/rainbowkit-guide
Is there a reason you need a custom connector? Generally you would want to use EIP-6963 on the wallet side so that it is registered/discoverable in RainbowKit without a connector and avoids conflicts. The wevm team built a wallet for Anvil that does exactly this too: https://github.com/paradigmxyz/rivet
Is there an existing issue for this?
RainbowKit Version
2.2.3
wagmi Version
2.14.8
Current Behavior
I've followed the Rainbowkit v2 documentation for creating a custom wallet and adding it to my wallet list. The custom wallet displays in the list of wallets in my app when using the example for
createConnector
which isgetWalletConnectConnector
. However, I want to use my own custom connector functions to create a mock wallet for my development environment. When I do so, by replacinggetWalletConnectConnector
with a fully detailed connector function, there is no error but the wallet does not appear in the list.Expected Behavior
I want to be able to write a custom connector, provide it to createConnector in my custom wallet, and see that wallet display in the list in my app. We had a working implementing with Rainbowkit/Wagmi v1 so I was expecting to be able to get this working on v2.
Steps To Reproduce
This works as expected (copied from the example in Rainbowkit docs) - the custom wallet displays in the wallet list.
However, attempting to set createConnector with my custom connector prevents the wallet from displaying in the wallet list (note that the app actually loads as connected to the mock wallet, so the connection itself is working OK, its just that it no longer displays in the wallet list)
And setting my config
Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)
No response
Anything else?
I expect my custom wallet to display here in my running app, however it does not.
The text was updated successfully, but these errors were encountered: