Skip to content

Commit

Permalink
Merge pull request #190 from gregnazario/add-identity-connect
Browse files Browse the repository at this point in the history
[example] Add identity connect to the example page
  • Loading branch information
gregnazario authored Sep 8, 2023
2 parents 621a8b0 + ceca518 commit f0aa954
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 25 deletions.
2 changes: 2 additions & 0 deletions apps/nextjs-example/components/AppContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@ import { AutoConnectProvider, useAutoConnect } from "./AutoConnectProvider";
import { FC, ReactNode } from "react";
import face from "../lib/faceInitialization";
import { AlertProvider, useAlert } from "./AlertProvider";
import {IdentityConnectWallet} from "@identity-connect/wallet-adapter-plugin";

const WalletContextProvider: FC<{ children: ReactNode }> = ({ children }) => {
const { autoConnect } = useAutoConnect();
const { setErrorAlertMessage } = useAlert();

const wallets = [
new IdentityConnectWallet("57fa42a9-29c6-4f1e-939c-4eefa36d9ff5", {networkName: NetworkName.Testnet}),
// Blocto supports Testnet/Mainnet for now.
new BloctoWallet({
network: NetworkName.Testnet,
Expand Down
1 change: 1 addition & 0 deletions apps/nextjs-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"@haechi-labs/face-aptos-adapter-plugin": "^0.0.4",
"@haechi-labs/face-sdk": "^1.10.8",
"@haechi-labs/face-types": "^1.10.8",
"@identity-connect/wallet-adapter-plugin": "^0.0.14",
"@martianwallet/aptos-wallet-adapter": "^0.0.4",
"@nightlylabs/aptos-wallet-adapter-plugin": "^0.2.12",
"@openblockhq/aptos-wallet-adapter": "^0.1.5",
Expand Down
1 change: 1 addition & 0 deletions apps/nextjs-example/public/identity-connect.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
identity-connect-57fa42a9-29c6-4f1e-939c-4eefa36d9ff5
114 changes: 89 additions & 25 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f0aa954

Please sign in to comment.