diff --git a/packages/useink/src/core/types/talisman-connect-wallets.ts b/packages/useink/src/core/types/talisman-connect-wallets.ts index 13e5679..a2f1686 100644 --- a/packages/useink/src/core/types/talisman-connect-wallets.ts +++ b/packages/useink/src/core/types/talisman-connect-wallets.ts @@ -1,6 +1,6 @@ export { getWalletBySource, getWallets } from '@talismn/connect-wallets'; -import type { Wallet } from '@talismn/connect-wallets'; import { Signer } from './api'; +import type { Wallet } from '@talismn/connect-wallets'; export interface WalletAccount { // Talisman sets the type as unknown so we must manually set it to Signer diff --git a/packages/useink/src/react/hooks/contracts/useCall.ts b/packages/useink/src/react/hooks/contracts/useCall.ts index 534b7a8..d76139a 100644 --- a/packages/useink/src/react/hooks/contracts/useCall.ts +++ b/packages/useink/src/react/hooks/contracts/useCall.ts @@ -1,4 +1,3 @@ -import { useCallback, useState } from 'react'; import { DecodedContractResult, LazyCallOptions, @@ -7,6 +6,7 @@ import { import { ChainContract, useDefaultCaller } from '../index'; import { useWallet } from '../wallets/useWallet.ts'; import { useAbiMessage } from './useAbiMessage.ts'; +import { useCallback, useState } from 'react'; export type CallSend = ( args?: Array, diff --git a/packages/useink/src/react/hooks/contracts/useDryRun.ts b/packages/useink/src/react/hooks/contracts/useDryRun.ts index 554ed18..fe3ffdd 100644 --- a/packages/useink/src/react/hooks/contracts/useDryRun.ts +++ b/packages/useink/src/react/hooks/contracts/useDryRun.ts @@ -1,4 +1,3 @@ -import { useCallback, useState } from 'react'; import { DecodedTxResult, LazyCallOptions, @@ -9,6 +8,7 @@ import { useDefaultCaller } from '../config/index'; import { useWallet } from '../wallets/useWallet.ts'; import { ChainContract } from './types.ts'; import { useAbiMessage } from './useAbiMessage.ts'; +import { useCallback, useState } from 'react'; type DryRunResult = DecodedTxResult | undefined; diff --git a/packages/useink/src/react/hooks/contracts/useTx.ts b/packages/useink/src/react/hooks/contracts/useTx.ts index 53f350c..83cec4e 100644 --- a/packages/useink/src/react/hooks/contracts/useTx.ts +++ b/packages/useink/src/react/hooks/contracts/useTx.ts @@ -10,7 +10,7 @@ import { useWallet } from '../wallets/useWallet.ts'; import { ChainContract } from './types.ts'; import { useDryRun } from './useDryRun.ts'; import { useTxEvents } from './useTxEvents.ts'; -import { useCallback, useMemo, useState } from 'react'; +import { useCallback, useState } from 'react'; export type ContractSubmittableResultCallback = ( result?: ContractSubmittableResult,