From b90b0e55ff7f265077c7becbd3d0c36529f29fcb Mon Sep 17 00:00:00 2001 From: heisenberg Date: Thu, 12 Oct 2023 16:52:17 +0800 Subject: [PATCH] fix: chainId --- src/background/controller/wallet.ts | 2 +- src/utils/walletconnect.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/background/controller/wallet.ts b/src/background/controller/wallet.ts index f2fa959ef1c..697805f144e 100644 --- a/src/background/controller/wallet.ts +++ b/src/background/controller/wallet.ts @@ -1750,7 +1750,7 @@ export class WalletController extends BaseController { keyring = new WalletConnect(GET_WALLETCONNECT_CONFIG()); isNewKey = true; } - keyring.initConnector(brandName, !chainId ? 1 : chainId); + keyring.initConnector(brandName, 1); let stashId = curStashId; if (isNewKey) { stashId = this.addKeyringToStash(keyring); diff --git a/src/utils/walletconnect.ts b/src/utils/walletconnect.ts index 8940aecd441..5e5e6a3bdd0 100644 --- a/src/utils/walletconnect.ts +++ b/src/utils/walletconnect.ts @@ -7,7 +7,9 @@ export const GET_WALLETCONNECT_CONFIG = () => { clientMeta: { description: t('global.appDescription'), url: 'https://rabby.io', - icons: ['https://rabby.io/assets/images/logo.png'], + icons: [ + 'https://static-assets.rabby.io/files/122da969-da58-42e9-ab39-0a8dd38d94b8.png', + ], name: 'Rabby', }, projectId: 'ed21a1293590bdc995404dff7e033f04',