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] Safe wallet never connects in Safe context #2140

Open
1 task done
bitsforpeace opened this issue Aug 15, 2024 · 4 comments
Open
1 task done

[bug] Safe wallet never connects in Safe context #2140

bitsforpeace opened this issue Aug 15, 2024 · 4 comments

Comments

@bitsforpeace
Copy link

bitsforpeace commented Aug 15, 2024

Is there an existing issue for this?

  • I have searched the existing issues

RainbowKit Version

2.1.4

wagmi Version

2.12.5

Current Behavior

When I click on the Safe wallet option, the screen hangs with a message saying ‘Confirm connection in the extension,’ but the Safe wallet never actually connects.

Screenshot 2024-08-15 at 10 24 37 AM

Expected Behavior

Upon clicking ‘Safe’ from the wallet selection modal, it should connect to the Safe multisig wallet, but the connection hangs, showing ‘Confirm connection in the extension,’ and the Safe wallet never connects.

Steps To Reproduce

I've created a MRE repo here: https://github.com/bitsforpeace/react-vite-rainbowkit

Simply run the app (pnpm install && pnpm dev) and attempt to connect to a safe wallet from within the safe wallet context.

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

https://github.com/bitsforpeace/react-vite-rainbowkit

Anything else?

I’ve tried this with multiple Vite apps, and they all experience the same issue—hanging on ‘Confirm connection in the extension’ without connecting to the Safe multisig wallet. This makes me wonder if the issue is related specifically to Vite. Unfortunately, there are no logs providing any clues. However, a Next.js app with the same wallet and configuration setup has no issue connecting.

@bitsforpeace bitsforpeace changed the title [bug] <Safe wallet never connects in Safe context> [bug] Safe wallet never connects in Safe context Aug 15, 2024
@magiziz
Copy link
Contributor

magiziz commented Aug 15, 2024

@bitsforpeace WIll take a look and report back.

@rainbow-me rainbow-me deleted a comment Aug 16, 2024
@bitsforpeace
Copy link
Author

Just wanted to check-in to see if there are any updates here

@rainbow-me rainbow-me deleted a comment from bitsforpeace Aug 27, 2024
@rainbow-me rainbow-me deleted a comment from magiziz Aug 27, 2024
@DanielSinclair
Copy link
Collaborator

@bitsforpeace Can you give our example dApp a try in your Safe Browser? https://rainbowkit-example.vercel.app I wasn't able to reproduce there. Lmk if you see any errors. It is possible this would be isolated to Vite.

@bitsforpeace
Copy link
Author

@bitsforpeace Can you give our example dApp a try in your Safe Browser? https://rainbowkit-example.vercel.app I wasn't able to reproduce there. Lmk if you see any errors. It is possible this would be isolated to Vite.

Hey @DanielSinclair. I was able to connect using the Safe Browser with the example app you provided. Is it built using Vite? If so, could you please share the source code?

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

3 participants