Skip to content

Commit

Permalink
Merge pull request #770 from bancorprotocol/fix-injected-switch-network
Browse files Browse the repository at this point in the history
Remove supported chainId constraint in injected connector initialisation
  • Loading branch information
pingustar authored Jul 3, 2024
2 parents e0bd458 + e71ad82 commit e1342cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 4 additions & 1 deletion src/elements/walletConnect/WalletConnectModalError.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ export const WalletConnectModalError = ({
selectedWallet ? selectedWallet.name : 'Wallet'
}`}
</p>
<p className="text-12">Please try again or contact support</p>
<p className="text-12">
If you have multiple wallets on the browser, please disable them,
keep MetaMask active and try again
</p>
</div>
)}
</div>
Expand Down
4 changes: 1 addition & 3 deletions src/services/web3/wallet/connectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit e1342cf

Please sign in to comment.