Skip to content

Commit c7e7201

Browse files
committed
docs: clarification on code
1 parent 4117956 commit c7e7201

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

src/clients/web3/connectors.ts

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,26 @@ import { WalletConnectV2Connector } from './walletconnectV2';
1212

1313
export const FILTERED_OUT_WALLETS = ['Trust Wallet', 'Coinbase Wallet', 'WalletConnect'];
1414

15+
const rpcMap = getRpcUrlsByChainId();
16+
rpcMap[WalletChainIds.TESTNET] = 'https://goerli.infura.io/v3/54af4f71d6c44e0ea83badb0886458f9';
17+
1518
export const injectedConnector = new InjectedConnector({
1619
supportedChainIds: WALLET_SUPPORTED_CHAIN_IDS,
1720
});
1821

22+
const infinityWalletConnector = new InfinityWalletConnector({
23+
supportedChainIds: WALLET_SUPPORTED_CHAIN_IDS,
24+
});
25+
26+
//
27+
// Below are the 3 connectors in which onyx chain is not supported,
28+
// above are all of the multi-chain supported injectors
29+
//
30+
1931
const trustWalletConnector = new InjectedConnector({
2032
supportedChainIds: [WalletChainIds.MAINNET],
2133
});
2234

23-
const rpcMap = getRpcUrlsByChainId();
24-
rpcMap[WalletChainIds.TESTNET] = 'https://goerli.infura.io/v3/54af4f71d6c44e0ea83badb0886458f9';
25-
2635
const walletConnectConnector = new WalletConnectV2Connector({
2736
supportedChainIds: [WalletChainIds.MAINNET],
2837
rpcMap,
@@ -40,10 +49,6 @@ const coinbaseWalletConnector = new WalletLinkConnector({
4049
supportedChainIds: [WalletChainIds.MAINNET],
4150
});
4251

43-
const infinityWalletConnector = new InfinityWalletConnector({
44-
supportedChainIds: WALLET_SUPPORTED_CHAIN_IDS,
45-
});
46-
4752
export const connectorsByName = {
4853
[Connector.MetaMask]: injectedConnector,
4954
[Connector.BraveWallet]: injectedConnector,

0 commit comments

Comments
 (0)