Skip to content

Commit

Permalink
fix(app): remove ledge connect lilbrary (passportxyz#1981)
Browse files Browse the repository at this point in the history
* fix(app): remove ledge connect lilbrary

* fix(app): removing all walletconnect options

---------

Co-authored-by: Lucian Hymer <[email protected]>
  • Loading branch information
tim-schultz and lucianHymer authored Dec 14, 2023
1 parent 2a73895 commit 961242d
Show file tree
Hide file tree
Showing 4 changed files with 600 additions and 419 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 18.18
cache: "yarn"
- name: Install Packages
run: yarn install
Expand Down
1 change: 0 additions & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
"@self.id/framework": "0.3.3",
"@web3-onboard/core": "2.21.2",
"@web3-onboard/injected-wallets": "2.10.7",
"@web3-onboard/ledger": "2.5.2",
"@web3-onboard/react": "2.8.13",
"@web3-onboard/walletconnect": "2.4.7",
"@web3-onboard/walletlink": "2.1.3",
Expand Down
17 changes: 9 additions & 8 deletions app/utils/onboard.ts
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
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, walletConnect],
wallets: [injected],
chains: chains.map(({ id, token, label, rpcUrl, icon }) => ({ id, token, label, rpcUrl, icon })),
appMetadata: {
name: "Passport",
Expand Down
Loading

0 comments on commit 961242d

Please sign in to comment.