Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Commit

Permalink
Add Uniswap Wallet to WalletConnect switch chain regex (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
spenciefy authored Mar 9, 2023
1 parent c6b2b3a commit e3a3fee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/gold-beans-destroy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@wagmi/connectors': patch
---

Added "uniswap wallet" to the regex that determines wallets allowed to switch chains in the WalletConnect legacy connector
4 changes: 3 additions & 1 deletion packages/connectors/src/walletConnectLegacy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ import { Connector } from './base'
* - MetaMask (metamask.io)
* - Rainbow (rainbow.me)
* - Trust Wallet (trustwallet.com)
* - Uniswap Wallet (uniswap.org)
*/
const switchChainAllowedRegex = /(imtoken|metamask|rainbow|trust wallet)/i
const switchChainAllowedRegex =
/(imtoken|metamask|rainbow|trust wallet|uniswap wallet)/i

type WalletConnectOptions = ConstructorParameters<
typeof WalletConnectProvider
Expand Down

0 comments on commit e3a3fee

Please sign in to comment.