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] Can't connect on Gnosis with Rainbow wallet #1469

Closed
1 task done
n1c01a5 opened this issue Aug 17, 2023 · 5 comments
Closed
1 task done

[bug] Can't connect on Gnosis with Rainbow wallet #1469

n1c01a5 opened this issue Aug 17, 2023 · 5 comments

Comments

@n1c01a5
Copy link

n1c01a5 commented Aug 17, 2023

Is there an existing issue for this?

  • I have searched the existing issues

RainbowKit Version

^1.0.7

wagmi Version

~1.3.9

Current Behavior

When I scan the Rainbow QrCode I got this error "Connection Failed" on my mobile.

And get this error in my browser console :

client.js:1 Error: Invalid session settle request.
    at eval (index.es.js:1:3439)
    at async n (index.es.js:1:3258)

Expected Behavior

Connect with Rainbow wallet

Steps To Reproduce

On a local env, scan QR code.

Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)

Codesandbox

Anything else?

Probably Gnosis Chain is not supported .

But it's not explicit in the README.

@n1c01a5 n1c01a5 changed the title [bug] Can't connect on Rainbow with mobile [bug] Can't connect on Gnosis with Rainbow wallet Aug 17, 2023
@DanielSinclair
Copy link
Collaborator

DanielSinclair commented Aug 18, 2023

@n1c01a5 That's correct, Gnosis Chain is not currently supported by the Rainbow Wallet. Wallets that do support the network will work fine. There will soon be a change to WalletConnect v2 by the WalletConnect team that smooths out this problem because a WalletConnect session can now succeed even if none of the required networks are supported. Currently Wagmi takes the first chain and marks it as required for the WalletConnect session, causing the session to fail if the network is unsupported; now every network will be treated as optional and pass the error handling purely to the dApp side.

@DanielSinclair DanielSinclair closed this as not planned Won't fix, can't repro, duplicate, stale Aug 18, 2023
@jtrein
Copy link

jtrein commented Sep 4, 2023

@DanielSinclair I have this same issue locally, but when attempting to connect to Goerli. Very strange. I am using [email protected] as well.

@CondeGil
Copy link

CondeGil commented Sep 25, 2023

@n1c01a5 That's correct, Gnosis Chain is not currently supported by the Rainbow Wallet. Wallets that do support the network will work fine. There will soon be a change to WalletConnect v2 by the WalletConnect team that smooths out this problem because a WalletConnect session can now succeed even if none of the required networks are supported. Currently Wagmi takes the first chain and marks it as required for the WalletConnect session, causing the session to fail if the network is unsupported; now every network will be treated as optional and pass the error handling purely to the dApp side.

Im working in a project that supports multiple chains and gnosis connection throw walletconnect. Because of that issue, that only the first chain is the required one gnosis wallets, can't connect with any other chain other the first one (ethereum in my case).
I overcome this by changing the initialChain prop of the RainbowKitProvider component when a user changes a network in my app. Would be better if, by attempting a connection from the gnosis side, the wallet swaps to the right network on the viem/wagmi side. But at least, while we dont have a better solution, with this is possible to connect. The user only need to make sure to be in the right network on my app side before attempting a connection from the gnosis side.

@positonic
Copy link

A year later is this still an issue? I can't connect with Rainbow to gnosis.

@DanielSinclair
Copy link
Collaborator

@positonic Correct. But, Rainbow Wallet will officially support Gnosis within the next few weeks. You can always add a custom chain to our desktop extension as well to use Gnosis today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants