Skip to content

Commit e58367e

Browse files
fix: coin98, other wallet mobile visibility (#2547)
* fix: coin98 rdns, mobile installed detection logic * fix: show CLV, SafePal, Frontier, and BeraSig wallets on mobile Applied the same mobile visibility fix to additional wallets that had the same issue as Coin98. These wallets now use the conditional `installed` pattern: when not injected (typical on mobile), `installed` is set to `undefined` instead of `false`, allowing the wallet to be marked as `ready: true` and displayed on mobile with WalletConnect support. Fixed wallets: - CLV Wallet - SafePal Wallet - Frontier Wallet - BeraSig Wallet Related to #2480 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * chore: add changeset for mobile wallet visibility fixes * chore: ignore msw scripts --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 16963de commit e58367e

File tree

7 files changed

+12
-6
lines changed

7 files changed

+12
-6
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@rainbow-me/rainbowkit": patch
3+
---
4+
5+
Fix mobile visibility for Coin98, CLV, SafePal, Frontier, and BeraSig wallets.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
"core-js",
9393
"core-js-pure",
9494
"keccak",
95+
"msw",
9596
"protobufjs",
9697
"sharp",
9798
"utf-8-validate"

packages/rainbowkit/src/wallets/walletConnectors/berasigWallet/berasigWallet.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const berasigWallet = ({
2222
rdns: 'app.berasig',
2323
iconUrl: async () => (await import('./berasigWallet.svg')).default,
2424
iconBackground: '#ffffff',
25-
installed: isBerasigWalletInjected,
25+
installed: !shouldUseWalletConnect ? isBerasigWalletInjected : undefined,
2626
downloadUrls: {
2727
android: 'https://play.google.com/store/apps/details?id=io.berasig.ios',
2828
ios: 'https://apps.apple.com/us/app/berasig-wallet-on-berachain/id6502052535',

packages/rainbowkit/src/wallets/walletConnectors/clvWallet/clvWallet.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const clvWallet = ({
2020
iconUrl: async () => (await import('./clvWallet.svg')).default,
2121
iconBackground: '#fff',
2222
iconAccent: '#BDFDE2',
23-
installed: isCLVInjected,
23+
installed: !shouldUseWalletConnect ? isCLVInjected : undefined,
2424
downloadUrls: {
2525
chrome:
2626
'https://chrome.google.com/webstore/detail/clv-wallet/nhnkbkgjikgcigadomkphalanndcapjk',

packages/rainbowkit/src/wallets/walletConnectors/coin98Wallet/coin98Wallet.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ export const coin98Wallet = ({
2121
id: 'coin98',
2222
name: 'Coin98 Wallet',
2323
iconUrl: async () => (await import('./coin98Wallet.svg')).default,
24-
installed: isCoin98WalletInjected,
24+
installed: !shouldUseWalletConnect ? isCoin98WalletInjected : undefined,
2525
iconAccent: '#CDA349',
2626
iconBackground: '#fff',
27-
rdns: 'coin98.com',
27+
rdns: 'com.coin98',
2828
downloadUrls: {
2929
android:
3030
'https://play.google.com/store/apps/details?id=coin98.crypto.finance.media',

packages/rainbowkit/src/wallets/walletConnectors/frontierWallet/frontierWallet.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const frontierWallet = ({
2222
id: 'frontier',
2323
name: 'Frontier Wallet',
2424
rdns: 'xyz.frontier.wallet',
25-
installed: isFrontierInjected,
25+
installed: !shouldUseWalletConnect ? isFrontierInjected : undefined,
2626
iconUrl: async () => (await import('./frontierWallet.svg')).default,
2727
iconBackground: '#CC703C',
2828
downloadUrls: {

packages/rainbowkit/src/wallets/walletConnectors/safepalWallet/safepalWallet.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export const safepalWallet = ({
9191
// Note that we never resolve `installed` to `false` because the
9292
// SafePal Wallet provider falls back to other connection methods if
9393
// the injected connector isn't available
94-
installed: isSafePalWalletInjected,
94+
installed: !shouldUseWalletConnect ? isSafePalWalletInjected : undefined,
9595
iconAccent: '#3375BB',
9696
iconBackground: '#fff',
9797
downloadUrls: {

0 commit comments

Comments
 (0)