Skip to content

Commit

Permalink
chore(app): re enable wallet connect (#478)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-schultz authored Dec 15, 2023
1 parent 026cf55 commit 49ff1b0
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions interface/utils/onboard.ts
Original file line number Diff line number Diff line change
@@ -1,29 +1,27 @@
import { init } from "@web3-onboard/react";
// import walletConnectModule, {
// WalletConnectOptions,
// } from "@web3-onboard/walletconnect";
// import ledgerModule from "@web3-onboard/ledger";
import walletConnectModule, {
WalletConnectOptions,
} from "@web3-onboard/walletconnect";

import injectedModule from "@web3-onboard/injected-wallets";

const alchemyApiKey =
process.env.NEXT_PUBLIC_PASSPORT_SCORER_ALCHEMY_API_KEY || "";

//const walletConnectOptions: WalletConnectOptions = {
// projectId:
// (process.env.NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID as string) ||
// "default-project-id",
//};
const walletConnectOptions: WalletConnectOptions = {
projectId:
(process.env.NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID as string) ||
"default-project-id",
};

const onBoardExploreUrl =
(process.env.NEXT_PUBLIC_WEB3_ONBOARD_EXPLORE_URL as string) ||
"https://passport.gitcoin.co/";

// const walletConnect = walletConnectModule(walletConnectOptions);
const walletConnect = walletConnectModule(walletConnectOptions);
const injected = injectedModule();
// const ledger = ledgerModule();

// const wallets = [injected, ledger, walletConnect];
const wallets = [injected];
const wallets = [injected, walletConnect];

const chains = [
{
Expand Down

0 comments on commit 49ff1b0

Please sign in to comment.