diff --git a/wallets/react-wallet-v2/src/utils/WalletConnectUtil.ts b/wallets/react-wallet-v2/src/utils/WalletConnectUtil.ts index 49e13eb..cc2c999 100644 --- a/wallets/react-wallet-v2/src/utils/WalletConnectUtil.ts +++ b/wallets/react-wallet-v2/src/utils/WalletConnectUtil.ts @@ -13,6 +13,14 @@ export async function createSignClient(relayerRegionURL: string) { icons: ['https://avatars.githubusercontent.com/u/37784886'] } }) + + try { + const clientId = await signClient.core.crypto.getClientId() + console.log('WalletConnect ClientID: ', clientId) + localStorage.setItem('WALLETCONNECT_CLIENT_ID', clientId) + } catch (error) { + console.error('Failed to set WalletConnect clientId in localStorage: ', error) + } } export async function updateSignClientChainId(chainId: string, address: string) {