From ae038633d9df67efcdc13b79c3b778cd3457b428 Mon Sep 17 00:00:00 2001 From: Vladislav Kokosh Date: Tue, 28 May 2024 17:27:41 +0300 Subject: [PATCH 1/2] Fixed wallet connect config --- src/utils/providers/walletConnect/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/utils/providers/walletConnect/index.ts b/src/utils/providers/walletConnect/index.ts index 76291e8..1b8e04f 100644 --- a/src/utils/providers/walletConnect/index.ts +++ b/src/utils/providers/walletConnect/index.ts @@ -36,10 +36,11 @@ export class WalletConnect implements Provider { async connect(params: ParamsNetwork): Promise { this.walletConnect = await EthereumProvider.init({ projectId: '94099fc4aa88338ac0e67f25b47da521', - chains: [1, 56], + chains: [1], showQrModal: true, + optionalChains: [56], rpcMap: { - '1' : 'https://bridge.ton.org/mainnet/', + '1' : 'https://ethereum-rpc.publicnode.com', '56': 'https://bsc-dataseed.binance.org/' } }); From 2c0d199945abff516c81665d70f7dc88aef6fcba Mon Sep 17 00:00:00 2001 From: Vladislav Kokosh Date: Tue, 28 May 2024 17:41:04 +0300 Subject: [PATCH 2/2] Removed 'chains' field and moved all chain numbers to 'optionalChains' --- src/utils/providers/walletConnect/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/utils/providers/walletConnect/index.ts b/src/utils/providers/walletConnect/index.ts index 1b8e04f..f01b015 100644 --- a/src/utils/providers/walletConnect/index.ts +++ b/src/utils/providers/walletConnect/index.ts @@ -36,9 +36,8 @@ export class WalletConnect implements Provider { async connect(params: ParamsNetwork): Promise { this.walletConnect = await EthereumProvider.init({ projectId: '94099fc4aa88338ac0e67f25b47da521', - chains: [1], showQrModal: true, - optionalChains: [56], + optionalChains: [1, 56], rpcMap: { '1' : 'https://ethereum-rpc.publicnode.com', '56': 'https://bsc-dataseed.binance.org/'