From ce4d13a8a95012f56ea4249de079a34be579fab7 Mon Sep 17 00:00:00 2001
From: Tiago Silva
Date: Tue, 2 Jul 2024 14:52:48 +0100
Subject: [PATCH 1/3] Remove supported chainId constraint in injected connector
initialisation
---
src/services/web3/wallet/connectors.ts | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/services/web3/wallet/connectors.ts b/src/services/web3/wallet/connectors.ts
index 04c1a402e..827ca73a4 100644
--- a/src/services/web3/wallet/connectors.ts
+++ b/src/services/web3/wallet/connectors.ts
@@ -13,9 +13,7 @@ export const ALCHEMY_URL = `https://eth-mainnet.alchemyapi.io/v2/${
const appName = 'bancor';
-export const injected = new InjectedConnector({
- supportedChainIds: [1, 3, 4, 5, 42],
-});
+export const injected = new InjectedConnector({});
export const gnosisSafe = new SafeAppConnector();
From 7b6f9850ed5ce0fa1d959c6be912c412cd38e663 Mon Sep 17 00:00:00 2001
From: Tiago Silva
Date: Wed, 3 Jul 2024 13:03:16 +0100
Subject: [PATCH 2/3] Update error text when connecting wallet
---
src/elements/walletConnect/WalletConnectModalError.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/elements/walletConnect/WalletConnectModalError.tsx b/src/elements/walletConnect/WalletConnectModalError.tsx
index 26dd24cb8..3adeb4f0a 100644
--- a/src/elements/walletConnect/WalletConnectModalError.tsx
+++ b/src/elements/walletConnect/WalletConnectModalError.tsx
@@ -31,7 +31,7 @@ export const WalletConnectModalError = ({
selectedWallet ? selectedWallet.name : 'Wallet'
}`}
- Please try again or contact support
+ If you have multiple wallets on the browser, please disable them, keep MetaMask active and try again
)}
From e71ad826f47c044cf8e866efc70dd895a743c747 Mon Sep 17 00:00:00 2001
From: Tiago Silva
Date: Wed, 3 Jul 2024 13:07:10 +0100
Subject: [PATCH 3/3] Fix lint error
---
src/elements/walletConnect/WalletConnectModalError.tsx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/elements/walletConnect/WalletConnectModalError.tsx b/src/elements/walletConnect/WalletConnectModalError.tsx
index 3adeb4f0a..d00412262 100644
--- a/src/elements/walletConnect/WalletConnectModalError.tsx
+++ b/src/elements/walletConnect/WalletConnectModalError.tsx
@@ -31,7 +31,10 @@ export const WalletConnectModalError = ({
selectedWallet ? selectedWallet.name : 'Wallet'
}`}
- If you have multiple wallets on the browser, please disable them, keep MetaMask active and try again
+
+ If you have multiple wallets on the browser, please disable them,
+ keep MetaMask active and try again
+
)}