From 73fb57bad8b8151648b319a55e95ffd877da2e81 Mon Sep 17 00:00:00 2001 From: Mark Grothe Date: Thu, 21 Nov 2024 10:36:16 -0600 Subject: [PATCH 1/2] fix: wc rpc and config --- .../web3-data-provider/WalletConnectConnector.ts | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/libs/web3-data-provider/WalletConnectConnector.ts b/src/libs/web3-data-provider/WalletConnectConnector.ts index ed9ff553e9..0dc11f7df9 100644 --- a/src/libs/web3-data-provider/WalletConnectConnector.ts +++ b/src/libs/web3-data-provider/WalletConnectConnector.ts @@ -4,7 +4,7 @@ import { } from '@walletconnect/ethereum-provider/dist/types/EthereumProvider'; import { AbstractConnector } from '@web3-react/abstract-connector'; import { ConnectorUpdate } from '@web3-react/types'; -import { getNetworkConfig, getSupportedChainIds } from 'src/utils/marketsAndNetworksConfig'; +import { getSupportedChainIds } from 'src/utils/marketsAndNetworksConfig'; import invariant from 'tiny-invariant'; export const URI_AVAILABLE = 'URI_AVAILABLE'; @@ -27,18 +27,17 @@ export class WalletConnectConnector extends AbstractConnector { const supportedChainIds = getSupportedChainIds(); - const rpcMap = supportedChainIds.reduce((acc, network) => { - const config = getNetworkConfig(network); - acc[network] = config.privateJsonRPCUrl || config.publicJsonRPCUrl[0]; - return acc; - }, {} as { [networkId: number]: string }); - this.config = { chains: [defaultChainId], optionalChains: supportedChainIds, - rpcMap, projectId: process.env.NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID, showQrModal: true, + metadata: { + name: 'Aave', + description: 'Non-custodial liquidity protocol', + url: 'https://app.aave.com', + icons: ['https://app.aave.com/favicon.ico'], + }, }; this.handleChainChanged = this.handleChainChanged.bind(this); From d579b7a2645578a0ce169eabfc145fc63f309b8b Mon Sep 17 00:00:00 2001 From: Mark Grothe Date: Thu, 21 Nov 2024 10:49:54 -0600 Subject: [PATCH 2/2] fix: icon --- src/libs/web3-data-provider/WalletConnectConnector.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/web3-data-provider/WalletConnectConnector.ts b/src/libs/web3-data-provider/WalletConnectConnector.ts index 0dc11f7df9..e0aa41fc72 100644 --- a/src/libs/web3-data-provider/WalletConnectConnector.ts +++ b/src/libs/web3-data-provider/WalletConnectConnector.ts @@ -36,7 +36,7 @@ export class WalletConnectConnector extends AbstractConnector { name: 'Aave', description: 'Non-custodial liquidity protocol', url: 'https://app.aave.com', - icons: ['https://app.aave.com/favicon.ico'], + icons: ['https://avatars.githubusercontent.com/u/47617460?s=200&v=4'], }, };