Skip to content

Commit

Permalink
Update destructure to import Web3AuthConnector from "@web3auth/web3au…
Browse files Browse the repository at this point in the history
…th-wagmi-connector".
  • Loading branch information
Royal-lobster committed Sep 3, 2024
1 parent 2347911 commit 991505e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/red-tigers-occur.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@everipedia/iq-login": patch
---

Fixes destructure to @web3auth/web3auth-wagmi-connector
3 changes: 1 addition & 2 deletions src/lib/integrations/web3-auth-connector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@ import basePackage from "@web3auth/base";
import ethProviderPackage from "@web3auth/ethereum-provider";
import modalPackage from "@web3auth/modal";
import walletServicesPluginPackage from "@web3auth/wallet-services-plugin";
import web3AuthWagmiConnectorPackage from "@web3auth/web3auth-wagmi-connector";
import { Web3AuthConnector } from "@web3auth/web3auth-wagmi-connector";
import type { Chain } from "viem";
import { createConnector } from "wagmi";

const { WALLET_ADAPTERS } = basePackage;
const { EthereumPrivateKeyProvider } = ethProviderPackage;
const { Web3Auth } = modalPackage;
const { WalletServicesPlugin } = walletServicesPluginPackage;
const { Web3AuthConnector } = web3AuthWagmiConnectorPackage;

if (!process.env.NEXT_PUBLIC_WEB3_AUTH_CLIENT_ID) {
throw new Error("NEXT_PUBLIC_WEB3_AUTH_CLIENT_ID is not set");
Expand Down

0 comments on commit 991505e

Please sign in to comment.