Skip to content

Commit

Permalink
fix:wc WebSocket error
Browse files Browse the repository at this point in the history
  • Loading branch information
constwz committed Dec 28, 2023
1 parent a98be37 commit 8bd1043
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/hooks/wallets/consts.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const enum WALLET_KEYS {
INJECTED = 'INJECTED',
WALLETCONNECT_V2 = 'WALLETCONNECT_V2',
// WALLETCONNECT_V2 = 'WALLETCONNECT_V2',
COINBASE = 'COINBASE',
LEDGER = 'LEDGER',
TREZOR = 'TREZOR',
Expand All @@ -9,7 +9,7 @@ export const enum WALLET_KEYS {

export const CGW_NAMES: { [key in WALLET_KEYS]: string | undefined } = {
[WALLET_KEYS.INJECTED]: 'detectedwallet',
[WALLET_KEYS.WALLETCONNECT_V2]: 'walletConnect_v2',
//[WALLET_KEYS.WALLETCONNECT_V2]: 'walletConnect_v2',
[WALLET_KEYS.COINBASE]: 'coinbase',
[WALLET_KEYS.LEDGER]: 'ledger',
[WALLET_KEYS.TREZOR]: 'trezor',
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/wallets/useOnboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export const useInitOnboard = () => {
const onboard = useStore()
const customRpc = useAppSelector(selectRpc)

useInitPairing()
//useInitPairing()

useEffect(() => {
if (configs.length > 0 && chain) {
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/wallets/wallets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const walletConnectV2 = (chain: ChainInfo): WalletInit => {

const WALLET_MODULES: { [key in WALLET_KEYS]: (chain: ChainInfo) => WalletInit } = {
[WALLET_KEYS.INJECTED]: () => injectedWalletModule(),
[WALLET_KEYS.WALLETCONNECT_V2]: (chain) => walletConnectV2(chain),
//[WALLET_KEYS.WALLETCONNECT_V2]: (chain) => walletConnectV2(chain),
[WALLET_KEYS.COINBASE]: () => coinbaseModule({ darkMode: prefersDarkMode() }),
[WALLET_KEYS.LEDGER]: () => ledgerModule(),
[WALLET_KEYS.TREZOR]: () => trezorModule({ appUrl: TREZOR_APP_URL, email: TREZOR_EMAIL }),
Expand Down

0 comments on commit 8bd1043

Please sign in to comment.