Skip to content

Commit

Permalink
fix web3auth imports
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyapotti committed Sep 25, 2023
1 parent d808d90 commit f035d93
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions src/lib/connector.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
/* eslint-disable import/no-extraneous-dependencies */
import { Address, Chain, Connector, ConnectorData, WalletClient } from "@wagmi/core";
import {
ADAPTER_STATUS,
CHAIN_NAMESPACES,
type IWeb3Auth,
log,
type SafeEventEmitterProvider,
type WALLET_ADAPTER_TYPE,
WALLET_ADAPTERS,
} from "@web3auth/base";
import type { IWeb3Auth, SafeEventEmitterProvider, WALLET_ADAPTER_TYPE } from "@web3auth/base";
import * as pkg from "@web3auth/base";
import type { IWeb3AuthModal, ModalConfig } from "@web3auth/modal";
import type { OpenloginLoginParams } from "@web3auth/openlogin-adapter";
import { createWalletClient, custom, getAddress, SwitchChainError, UserRejectedRequestError } from "viem";

import type { Options } from "./interfaces";

const { ADAPTER_STATUS, CHAIN_NAMESPACES, WALLET_ADAPTERS, log } = pkg;

const IS_SERVER = typeof window === "undefined";

function isIWeb3AuthModal(obj: IWeb3Auth | IWeb3AuthModal): obj is IWeb3AuthModal {
Expand Down

0 comments on commit f035d93

Please sign in to comment.