diff --git a/src/lib/connector.ts b/src/lib/connector.ts index 9ba1664..1a10a4c 100644 --- a/src/lib/connector.ts +++ b/src/lib/connector.ts @@ -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 {