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

Investigate Unisat and Xverse wallet connection bug #843

Open
r-czajkowski opened this issue Nov 12, 2024 · 0 comments
Open

Investigate Unisat and Xverse wallet connection bug #843

r-czajkowski opened this issue Nov 12, 2024 · 0 comments

Comments

@r-czajkowski
Copy link
Contributor

Ref: #830

We noticed problems with connecting Xverse and Unisat wallets in the dApp on production. Users are redirected to the Chrome store even though they have the extension installed. It started happening after I initially tried to connect with an invalid network selected in the wallet. The bug is that the window.unisat and window.XverseProviders.BitcoinProvider have undefined values. The orangekit package refers to these fields under the hood and the isInstalled function always returns false.

NOTE:
We noticed different behavior in development and production builds. In the production build window.unisat and window.XverseProviders.BitcoinProvider are undefined even though they are installed. This weird bug can be only reproduced on the production build. It doesn't exist in development mode. We managed to fix it in #830, but it's more of a workaround to unblock production. It requires further investigation to understand exactly what is going on and determine whether it is a bug on orangekit or our side.

@nkuba nkuba added the 🍊OrangeKit label Dec 9, 2024 — with Linear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants