From 05d5d6d5b73a577f5418031a892feb6abd093e35 Mon Sep 17 00:00:00 2001 From: jchaselubitz Date: Sat, 16 Dec 2023 15:25:02 +0100 Subject: [PATCH] update wagmi and remove ledger connect in response to ledger security issue --- package.json | 4 ++-- src/web3/connectors.ts | 27 +++++++++++++-------------- 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/package.json b/package.json index 02274d8..02a09c6 100644 --- a/package.json +++ b/package.json @@ -91,8 +91,8 @@ "reactjs-popup": "^2.0.5", "url-parse": "^1.5.10", "uuid": "^9.0.1", - "viem": "^1.3.0", - "wagmi": "^1.3.9", + "viem": "^1.20.0", + "wagmi": "^1.4.12", "yup": "^1.1.1" }, "devDependencies": { diff --git a/src/web3/connectors.ts b/src/web3/connectors.ts index c5ea167..512636e 100644 --- a/src/web3/connectors.ts +++ b/src/web3/connectors.ts @@ -3,7 +3,6 @@ import { configureChains, createConfig, sepolia, mainnet, Connector } from 'wagm import { goerli, polygon, polygonMumbai } from 'wagmi/chains'; import { WalletConnectConnector } from 'wagmi/connectors/walletConnect'; import { CoinbaseWalletConnector } from 'wagmi/connectors/coinbaseWallet'; -import { LedgerConnector } from 'wagmi/connectors/ledger'; import { publicProvider } from 'wagmi/providers/public'; import { infuraProvider } from 'wagmi/providers/infura'; import { InjectedConnector } from 'wagmi/connectors/injected'; @@ -109,19 +108,19 @@ export const SupportedEthConnectors = [ }, }), }, - { - id: 'ledger', - name: 'Ledger Connect', - logo: '/assets/images/wallet-logos/ledgerconnect-alternative.webp', - experimental: false, - description: 'Connect to Ledger', - connector: new LedgerConnector({ - chains: SupportedChains, - options: { - projectId: process.env.NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID as string, - }, - }), - }, + // { + // id: 'ledger', + // name: 'Ledger Connect', + // logo: '/assets/images/wallet-logos/ledgerconnect-alternative.webp', + // experimental: false, + // description: 'Connect to Ledger', + // connector: new LedgerConnector({ + // chains: SupportedChains, + // options: { + // projectId: process.env.NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID as string, + // }, + // }), + // }, ]; const setConfigConnectors = (connectors: SupportedEthConnectorType[]) => {