Skip to content

Commit

Permalink
chore(app): remove ledger (passportxyz#1717)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-schultz authored Sep 26, 2023
1 parent 37feee6 commit 007a905
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions app/utils/onboard.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { init } from "@web3-onboard/react";
import injectedModule from "@web3-onboard/injected-wallets";
import ledgerModule from "@web3-onboard/ledger";
import walletConnectModule, { WalletConnectOptions } from "@web3-onboard/walletconnect";
import { chains } from "./chains";

Expand All @@ -19,16 +18,10 @@ const onBoardExploreUrl =
(process.env.NEXT_PUBLIC_WEB3_ONBOARD_EXPLORE_URL as string) || "https://passport.gitcoin.co/";

const walletConnect = walletConnectModule(walletConnectOptions);
// Include ledger capabilities
const ledger = ledgerModule({
walletConnectVersion: 2,
enableDebugLogs: false,
projectId: walletConnectProjectId,
});

// Exports onboard-core instance (https://github.com/blocknative/web3-onboard)
export const initWeb3Onboard = init({
wallets: [injected, ledger, walletConnect],
wallets: [injected, walletConnect],
chains: chains.map(({ id, token, label, rpcUrl, icon }) => ({ id, token, label, rpcUrl, icon })),
appMetadata: {
name: "Passport",
Expand Down

0 comments on commit 007a905

Please sign in to comment.