From 840c2b759e1160b1ebe6a6aef81ca280d5fd9120 Mon Sep 17 00:00:00 2001 From: peetzweg/ Date: Thu, 14 Sep 2023 14:35:18 +0200 Subject: [PATCH] fix lint issues --- packages/useink/src/core/types/talisman-connect-wallets.ts | 2 +- packages/useink/src/react/hooks/contracts/useCall.ts | 2 +- packages/useink/src/react/hooks/contracts/useDryRun.ts | 2 +- packages/useink/src/react/hooks/contracts/useTx.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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,