Skip to content

Commit

Permalink
fix: phantom wallet not appearing as eip6963 (#2069)
Browse files Browse the repository at this point in the history
  • Loading branch information
magiziz authored Jul 2, 2024
1 parent 72fe07d commit d02d73f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/red-apples-know.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rainbow-me/rainbowkit": patch
---

Resolved an issue where the Phantom wallet did not appear as an EIP-6963 connector.
2 changes: 1 addition & 1 deletion packages/rainbowkit/src/wallets/groupedWallets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const isRainbowKitConnector = (wallet: WalletInstance) => {
export const isEIP6963Connector = (wallet: WalletInstance) => {
return !!(
!wallet.isRainbowKitConnector &&
wallet.icon?.startsWith('data:image') &&
wallet.icon?.replace(/\n/g, '').startsWith('data:image') &&
wallet.uid &&
wallet.name
);
Expand Down

0 comments on commit d02d73f

Please sign in to comment.