Skip to content

Commit

Permalink
update wagmi and remove ledger connect in response to ledger security…
Browse files Browse the repository at this point in the history
… issue
  • Loading branch information
jchaselubitz committed Dec 16, 2023
1 parent 9f0f599 commit 05d5d6d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
27 changes: 13 additions & 14 deletions src/web3/connectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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[]) => {
Expand Down

0 comments on commit 05d5d6d

Please sign in to comment.