From c6b306bc98df071033b85df35e4bcbbae5e39291 Mon Sep 17 00:00:00 2001 From: constwz <122766871+constwz@users.noreply.github.com> Date: Fri, 15 Dec 2023 15:42:33 +0800 Subject: [PATCH] Revert "fix:walletconnect" --- src/hooks/wallets/useOnboard.ts | 2 +- src/services/pairing/hooks.ts | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/hooks/wallets/useOnboard.ts b/src/hooks/wallets/useOnboard.ts index 86847ecdfe..2781d67d86 100644 --- a/src/hooks/wallets/useOnboard.ts +++ b/src/hooks/wallets/useOnboard.ts @@ -141,7 +141,7 @@ export const useInitOnboard = () => { const onboard = useStore() const customRpc = useAppSelector(selectRpc) - //useInitPairing() + useInitPairing() useEffect(() => { if (configs.length > 0 && chain) { diff --git a/src/services/pairing/hooks.ts b/src/services/pairing/hooks.ts index 07292eb0f8..3ef713b3e0 100644 --- a/src/services/pairing/hooks.ts +++ b/src/services/pairing/hooks.ts @@ -38,15 +38,15 @@ export const useInitPairing = () => { const canConnect = !connector?.connected && !isConnecting const isSupported = isPairingSupported(chain?.disabledWallets) - useEffect(() => { - const _pairingConnector = new WalletConnect({ - bridge: WC_BRIDGE, - storageId: local.getPrefixedKey(PAIRING_MODULE_STORAGE_ID), - clientMeta: getClientMeta(), - }) - - setPairingConnector(_pairingConnector) - }, []) + //useEffect(() => { + // const _pairingConnector = new WalletConnect({ + // bridge: WC_BRIDGE, + // storageId: local.getPrefixedKey(PAIRING_MODULE_STORAGE_ID), + // clientMeta: getClientMeta(), + // }) + + //setPairingConnector(_pairingConnector) + //}, []) const createSession = useCallback(() => { if (!canConnect || !chain || !isSupported || !onboard) {