Skip to content

Commit

Permalink
chore(app): re enable wallet connect (passportxyz#1984)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-schultz authored Dec 15, 2023
1 parent 961242d commit b7bb11f
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions app/utils/onboard.ts
Original file line number Diff line number Diff line change
@@ -1,28 +1,27 @@
import { init } from "@web3-onboard/react";
import injectedModule from "@web3-onboard/injected-wallets";
// import walletConnectModule, { WalletConnectOptions } from "@web3-onboard/walletconnect";
import walletConnectModule, { WalletConnectOptions } from "@web3-onboard/walletconnect";
import { chains } from "./chains";

// Injected wallet - shows all available injected wallets

const injected = injectedModule();

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

const walletConnectOptions: WalletConnectOptions = {
projectId: walletConnectProjectId,
};

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

// const walletConnect = walletConnectModule(walletConnectOptions);
const walletConnect = walletConnectModule(walletConnectOptions);

// Exports onboard-core instance (https://github.com/blocknative/web3-onboard)
export const onboard = init({
// wallets: [injected, walletConnect],
wallets: [injected],
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 b7bb11f

Please sign in to comment.