From b05f731e0e339c2b02b5059bb2417c184a21e243 Mon Sep 17 00:00:00 2001 From: kyranjamie Date: Wed, 24 Jan 2024 14:19:05 -0300 Subject: [PATCH] chore: remove dupe imports, lint --- .eslintrc.js | 1 + .../account-restoration/legacy-gaia-config-lookup.ts | 8 ++++++-- src/app/common/hooks/use-bitcoin-contracts.ts | 3 +-- src/app/common/transactions/bitcoin/utils.ts | 6 ++++-- src/app/common/utils.spec.ts | 3 +-- src/app/components/app-version.tsx | 3 +-- .../crypto-currency-asset-item.layout.tsx | 3 +-- .../components/fees-row/components/fees-row.layout.tsx | 3 +-- .../features/bitcoin-choose-fee/bitcoin-choose-fee.tsx | 3 +-- src/app/features/container/container.tsx | 3 +-- .../leather-intro-dialog/leather-intro-steps.tsx | 3 +-- src/app/features/ledger/utils/stacks-ledger-utils.ts | 2 +- .../features/message-signer/message-preview-box.tsx | 3 +-- .../post-conditions/no-post-conditions.tsx | 3 +-- .../bitcoin-contract-list/bitcoin-contract-list.tsx | 6 ++++-- .../bitcoin-contract-request.tsx | 6 ++++-- .../bitcoin-contract-emergency-refund-time.tsx | 3 +-- .../components/network-list-item.layout.tsx | 3 +-- .../components/collectible-asset.tsx | 3 +-- .../send-crypto-asset-form/components/amount-field.tsx | 3 +-- .../send-crypto-asset-form/components/form-footer.tsx | 3 +-- .../components/selected-asset-field.tsx | 3 +-- .../form/brc-20/brc-20-choose-fee.tsx | 3 +-- src/app/query/common/market-data/market-data.hooks.ts | 9 +++++---- .../store/accounts/blockchain/bitcoin/bitcoin.hooks.ts | 10 ++++++---- src/background/background.ts | 3 +-- .../messaging/rpc-methods/accept-bitcoin-contract.ts | 6 ++++-- src/shared/crypto/bitcoin/bitcoin.utils.ts | 3 +-- 28 files changed, 54 insertions(+), 57 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 0b931dfd2ed..30248d7375c 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -30,6 +30,7 @@ module.exports = { // methods, such as implicit use of signed transactions 'deprecation/deprecation': 'warn', 'no-console': ['error'], + 'no-duplicate-imports': ['error'], 'prefer-const': [ 'error', { diff --git a/src/app/common/account-restoration/legacy-gaia-config-lookup.ts b/src/app/common/account-restoration/legacy-gaia-config-lookup.ts index 0736769f574..cd905ce1730 100644 --- a/src/app/common/account-restoration/legacy-gaia-config-lookup.ts +++ b/src/app/common/account-restoration/legacy-gaia-config-lookup.ts @@ -1,5 +1,9 @@ -import { fetchWalletConfig, generateWallet } from '@stacks/wallet-sdk'; -import { connectToGaiaHubWithConfig, getHubInfo } from '@stacks/wallet-sdk'; +import { + connectToGaiaHubWithConfig, + fetchWalletConfig, + generateWallet, + getHubInfo, +} from '@stacks/wallet-sdk'; import { gaiaUrl as gaiaHubUrl } from '@shared/constants'; diff --git a/src/app/common/hooks/use-bitcoin-contracts.ts b/src/app/common/hooks/use-bitcoin-contracts.ts index 88355b05eb5..8bec3e13ca6 100644 --- a/src/app/common/hooks/use-bitcoin-contracts.ts +++ b/src/app/common/hooks/use-bitcoin-contracts.ts @@ -11,8 +11,7 @@ import { import { Money, createMoneyFromDecimal } from '@shared/models/money.model'; import { RouteUrls } from '@shared/route-urls'; import { BitcoinContractResponseStatus } from '@shared/rpc/methods/accept-bitcoin-contract'; -import { makeRpcSuccessResponse } from '@shared/rpc/rpc-methods'; -import { makeRpcErrorResponse } from '@shared/rpc/rpc-methods'; +import { makeRpcErrorResponse, makeRpcSuccessResponse } from '@shared/rpc/rpc-methods'; import { sendAcceptedBitcoinContractOfferToProtocolWallet } from '@app/query/bitcoin/contract/send-accepted-bitcoin-contract-offer'; import { diff --git a/src/app/common/transactions/bitcoin/utils.ts b/src/app/common/transactions/bitcoin/utils.ts index 54f57cf4a77..b4df0aab8f2 100644 --- a/src/app/common/transactions/bitcoin/utils.ts +++ b/src/app/common/transactions/bitcoin/utils.ts @@ -2,8 +2,10 @@ import BigNumber from 'bignumber.js'; import { getAddressInfo, validate } from 'bitcoin-address-validation'; import { BTC_P2WPKH_DUST_AMOUNT } from '@shared/constants'; -import { BitcoinTransactionVectorOutput } from '@shared/models/transactions/bitcoin-transaction.model'; -import { BitcoinTx } from '@shared/models/transactions/bitcoin-transaction.model'; +import { + BitcoinTransactionVectorOutput, + BitcoinTx, +} from '@shared/models/transactions/bitcoin-transaction.model'; import { sumNumbers } from '@app/common/math/helpers'; import { satToBtc } from '@app/common/money/unit-conversion'; diff --git a/src/app/common/utils.spec.ts b/src/app/common/utils.spec.ts index 95c25e720f8..91c033e7105 100644 --- a/src/app/common/utils.spec.ts +++ b/src/app/common/utils.spec.ts @@ -1,5 +1,4 @@ -import { getTicker } from '@app/common/utils'; -import { extractPhraseFromString } from '@app/common/utils'; +import { extractPhraseFromString, getTicker } from '@app/common/utils'; import { countDecimals } from './math/helpers'; diff --git a/src/app/components/app-version.tsx b/src/app/components/app-version.tsx index 442e4b24a35..c67990f8ffe 100644 --- a/src/app/components/app-version.tsx +++ b/src/app/components/app-version.tsx @@ -1,5 +1,4 @@ -import { useMemo } from 'react'; -import { forwardRef } from 'react'; +import { forwardRef, useMemo } from 'react'; import { HTMLStyledProps, styled } from 'leather-styles/jsx'; diff --git a/src/app/components/crypto-assets/crypto-currency-asset/crypto-currency-asset-item.layout.tsx b/src/app/components/crypto-assets/crypto-currency-asset/crypto-currency-asset-item.layout.tsx index ff8086c2ff0..e864ae23d1c 100644 --- a/src/app/components/crypto-assets/crypto-currency-asset/crypto-currency-asset-item.layout.tsx +++ b/src/app/components/crypto-assets/crypto-currency-asset/crypto-currency-asset-item.layout.tsx @@ -1,6 +1,5 @@ import { CryptoAssetSelectors } from '@tests/selectors/crypto-asset.selectors'; -import { Flex } from 'leather-styles/jsx'; -import { styled } from 'leather-styles/jsx'; +import { Flex, styled } from 'leather-styles/jsx'; import { CryptoCurrencies } from '@shared/models/currencies.model'; import { Money } from '@shared/models/money.model'; diff --git a/src/app/components/fees-row/components/fees-row.layout.tsx b/src/app/components/fees-row/components/fees-row.layout.tsx index 9c60f48c63a..0a63fb8ccf5 100644 --- a/src/app/components/fees-row/components/fees-row.layout.tsx +++ b/src/app/components/fees-row/components/fees-row.layout.tsx @@ -1,6 +1,5 @@ import { useField } from 'formik'; -import { HstackProps, styled } from 'leather-styles/jsx'; -import { HStack } from 'leather-styles/jsx'; +import { HStack, HstackProps, styled } from 'leather-styles/jsx'; import { openInNewTab } from '@app/common/utils/open-in-new-tab'; import { SponsoredLabel } from '@app/components/sponsored-label'; diff --git a/src/app/features/bitcoin-choose-fee/bitcoin-choose-fee.tsx b/src/app/features/bitcoin-choose-fee/bitcoin-choose-fee.tsx index 99e3f3472bc..bfdc9ebb901 100644 --- a/src/app/features/bitcoin-choose-fee/bitcoin-choose-fee.tsx +++ b/src/app/features/bitcoin-choose-fee/bitcoin-choose-fee.tsx @@ -1,7 +1,6 @@ import { useState } from 'react'; -import { Box, FlexProps, Stack } from 'leather-styles/jsx'; -import { styled } from 'leather-styles/jsx'; +import { Box, FlexProps, Stack, styled } from 'leather-styles/jsx'; import { BtcFeeType } from '@shared/models/fees/bitcoin-fees.model'; import { Money } from '@shared/models/money.model'; diff --git a/src/app/features/container/container.tsx b/src/app/features/container/container.tsx index 76d8367fcaf..55d4ea9e5c8 100644 --- a/src/app/features/container/container.tsx +++ b/src/app/features/container/container.tsx @@ -4,8 +4,7 @@ import { Outlet, useLocation } from 'react-router-dom'; import { closeWindow } from '@shared/utils'; -import { useInitalizeAnalytics } from '@app/common/hooks/analytics/use-analytics'; -import { useAnalytics } from '@app/common/hooks/analytics/use-analytics'; +import { useAnalytics, useInitalizeAnalytics } from '@app/common/hooks/analytics/use-analytics'; import { LoadingSpinner } from '@app/components/loading-spinner'; import { useOnSignOut } from '@app/routes/hooks/use-on-sign-out'; import { useOnWalletLock } from '@app/routes/hooks/use-on-wallet-lock'; diff --git a/src/app/features/leather-intro-dialog/leather-intro-steps.tsx b/src/app/features/leather-intro-dialog/leather-intro-steps.tsx index 766d3b8c5bd..29b62738bfc 100644 --- a/src/app/features/leather-intro-dialog/leather-intro-steps.tsx +++ b/src/app/features/leather-intro-dialog/leather-intro-steps.tsx @@ -1,8 +1,7 @@ import { useLayoutEffect, useRef, useState } from 'react'; import Confetti from 'react-dom-confetti'; -import { Dialog } from '@radix-ui/themes'; -import { Inset } from '@radix-ui/themes'; +import { Dialog, Inset } from '@radix-ui/themes'; import { css } from 'leather-styles/css'; import { Box, Flex, Stack, styled } from 'leather-styles/jsx'; diff --git a/src/app/features/ledger/utils/stacks-ledger-utils.ts b/src/app/features/ledger/utils/stacks-ledger-utils.ts index 71edcb5a606..63899a1895f 100644 --- a/src/app/features/ledger/utils/stacks-ledger-utils.ts +++ b/src/app/features/ledger/utils/stacks-ledger-utils.ts @@ -19,8 +19,8 @@ import { SemVerObject, prepareLedgerDeviceForAppFn, promptOpenAppOnDevice, + versionObjectToVersionString, } from './generic-ledger-utils'; -import { versionObjectToVersionString } from './generic-ledger-utils'; export function requestPublicKeyForStxAccount(app: StacksApp) { return async (index: number) => diff --git a/src/app/features/message-signer/message-preview-box.tsx b/src/app/features/message-signer/message-preview-box.tsx index 6eb65039d44..ba45782363c 100644 --- a/src/app/features/message-signer/message-preview-box.tsx +++ b/src/app/features/message-signer/message-preview-box.tsx @@ -1,5 +1,4 @@ -import { Stack } from 'leather-styles/jsx'; -import { styled } from 'leather-styles/jsx'; +import { Stack, styled } from 'leather-styles/jsx'; import { HashDrawer } from './hash-drawer'; diff --git a/src/app/features/stacks-transaction-request/post-conditions/no-post-conditions.tsx b/src/app/features/stacks-transaction-request/post-conditions/no-post-conditions.tsx index 6b680558c91..6023981e5de 100644 --- a/src/app/features/stacks-transaction-request/post-conditions/no-post-conditions.tsx +++ b/src/app/features/stacks-transaction-request/post-conditions/no-post-conditions.tsx @@ -1,5 +1,4 @@ -import { Box, Circle, HStack } from 'leather-styles/jsx'; -import { styled } from 'leather-styles/jsx'; +import { Box, Circle, HStack, styled } from 'leather-styles/jsx'; import { LockIcon } from '@app/ui/components/icons/lock-icon'; diff --git a/src/app/pages/bitcoin-contract-list/bitcoin-contract-list.tsx b/src/app/pages/bitcoin-contract-list/bitcoin-contract-list.tsx index 5f8766e5a95..ba8eb71cd97 100644 --- a/src/app/pages/bitcoin-contract-list/bitcoin-contract-list.tsx +++ b/src/app/pages/bitcoin-contract-list/bitcoin-contract-list.tsx @@ -2,8 +2,10 @@ import { useState } from 'react'; import { Flex, styled } from 'leather-styles/jsx'; -import { useBitcoinContracts } from '@app/common/hooks/use-bitcoin-contracts'; -import { BitcoinContractListItem } from '@app/common/hooks/use-bitcoin-contracts'; +import { + BitcoinContractListItem, + useBitcoinContracts, +} from '@app/common/hooks/use-bitcoin-contracts'; import { useOnMount } from '@app/common/hooks/use-on-mount'; import { FullPageLoadingSpinner } from '@app/components/loading-spinner'; import { truncateMiddle } from '@app/ui/utils/truncate-middle'; diff --git a/src/app/pages/bitcoin-contract-request/bitcoin-contract-request.tsx b/src/app/pages/bitcoin-contract-request/bitcoin-contract-request.tsx index cbed6c93363..46150148e84 100644 --- a/src/app/pages/bitcoin-contract-request/bitcoin-contract-request.tsx +++ b/src/app/pages/bitcoin-contract-request/bitcoin-contract-request.tsx @@ -6,8 +6,10 @@ import { Stack } from 'leather-styles/jsx'; import { RouteUrls } from '@shared/route-urls'; import { BitcoinContractResponseStatus } from '@shared/rpc/methods/accept-bitcoin-contract'; -import { useBitcoinContracts } from '@app/common/hooks/use-bitcoin-contracts'; -import { BitcoinContractOfferDetails } from '@app/common/hooks/use-bitcoin-contracts'; +import { + BitcoinContractOfferDetails, + useBitcoinContracts, +} from '@app/common/hooks/use-bitcoin-contracts'; import { useOnMount } from '@app/common/hooks/use-on-mount'; import { initialSearchParams } from '@app/common/initial-search-params'; import { useCurrentAccountNativeSegwitSigner } from '@app/store/accounts/blockchain/bitcoin/native-segwit-account.hooks'; diff --git a/src/app/pages/bitcoin-contract-request/components/bitcoin-contract-offer/bitcoin-contract-emergency-refund-time.tsx b/src/app/pages/bitcoin-contract-request/components/bitcoin-contract-offer/bitcoin-contract-emergency-refund-time.tsx index 2e71ab32ec4..9c92c47ff8b 100644 --- a/src/app/pages/bitcoin-contract-request/components/bitcoin-contract-offer/bitcoin-contract-emergency-refund-time.tsx +++ b/src/app/pages/bitcoin-contract-request/components/bitcoin-contract-offer/bitcoin-contract-emergency-refund-time.tsx @@ -1,6 +1,5 @@ import { BitcoinContractRequestSelectors } from '@tests/selectors/bitcoin-contract-request.selectors'; -import { Flex } from 'leather-styles/jsx'; -import { styled } from 'leather-styles/jsx'; +import { Flex, styled } from 'leather-styles/jsx'; interface BitcoinContractEmergencyRefundTimeProps { emergencyRefundTime: string; diff --git a/src/app/pages/select-network/components/network-list-item.layout.tsx b/src/app/pages/select-network/components/network-list-item.layout.tsx index d6d6ba0ee8e..8e2de838d7c 100644 --- a/src/app/pages/select-network/components/network-list-item.layout.tsx +++ b/src/app/pages/select-network/components/network-list-item.layout.tsx @@ -1,6 +1,5 @@ import { SettingsSelectors } from '@tests/selectors/settings.selectors'; -import { Box, Flex, Stack } from 'leather-styles/jsx'; -import { styled } from 'leather-styles/jsx'; +import { Box, Flex, Stack, styled } from 'leather-styles/jsx'; import { NetworkConfiguration } from '@shared/constants'; diff --git a/src/app/pages/send/ordinal-inscription/components/collectible-asset.tsx b/src/app/pages/send/ordinal-inscription/components/collectible-asset.tsx index e769cdfd4f5..adf6c33f02f 100644 --- a/src/app/pages/send/ordinal-inscription/components/collectible-asset.tsx +++ b/src/app/pages/send/ordinal-inscription/components/collectible-asset.tsx @@ -1,5 +1,4 @@ -import { Flex } from 'leather-styles/jsx'; -import { HStack, styled } from 'leather-styles/jsx'; +import { Flex, HStack, styled } from 'leather-styles/jsx'; interface CollectibleAssetProps { icon: React.JSX.Element; diff --git a/src/app/pages/send/send-crypto-asset-form/components/amount-field.tsx b/src/app/pages/send/send-crypto-asset-form/components/amount-field.tsx index 2225aa24356..03d182f6c19 100644 --- a/src/app/pages/send/send-crypto-asset-form/components/amount-field.tsx +++ b/src/app/pages/send/send-crypto-asset-form/components/amount-field.tsx @@ -1,5 +1,4 @@ -import type { ChangeEvent } from 'react'; -import { useCallback, useEffect, useRef, useState } from 'react'; +import { type ChangeEvent, useCallback, useEffect, useRef, useState } from 'react'; import { SendCryptoAssetSelectors } from '@tests/selectors/send.selectors'; import { useField } from 'formik'; diff --git a/src/app/pages/send/send-crypto-asset-form/components/form-footer.tsx b/src/app/pages/send/send-crypto-asset-form/components/form-footer.tsx index 2993596e33b..9a5157f55e9 100644 --- a/src/app/pages/send/send-crypto-asset-form/components/form-footer.tsx +++ b/src/app/pages/send/send-crypto-asset-form/components/form-footer.tsx @@ -1,5 +1,4 @@ -import { Box } from 'leather-styles/jsx'; -import { Flex } from 'leather-styles/jsx'; +import { Box, Flex } from 'leather-styles/jsx'; import { Money } from '@shared/models/money.model'; diff --git a/src/app/pages/send/send-crypto-asset-form/components/selected-asset-field.tsx b/src/app/pages/send/send-crypto-asset-form/components/selected-asset-field.tsx index d6bf49a7869..63981ffa383 100644 --- a/src/app/pages/send/send-crypto-asset-form/components/selected-asset-field.tsx +++ b/src/app/pages/send/send-crypto-asset-form/components/selected-asset-field.tsx @@ -1,6 +1,5 @@ import { Field, useField } from 'formik'; -import { Flex } from 'leather-styles/jsx'; -import { styled } from 'leather-styles/jsx'; +import { Flex, styled } from 'leather-styles/jsx'; import { useOnMount } from '@app/common/hooks/use-on-mount'; import { Flag } from '@app/components/layout/flag'; diff --git a/src/app/pages/send/send-crypto-asset-form/form/brc-20/brc-20-choose-fee.tsx b/src/app/pages/send/send-crypto-asset-form/form/brc-20/brc-20-choose-fee.tsx index 763821f9d6e..22eb0020c78 100644 --- a/src/app/pages/send/send-crypto-asset-form/form/brc-20/brc-20-choose-fee.tsx +++ b/src/app/pages/send/send-crypto-asset-form/form/brc-20/brc-20-choose-fee.tsx @@ -1,7 +1,6 @@ import { useState } from 'react'; import { toast } from 'react-hot-toast'; -import { Outlet } from 'react-router-dom'; -import { useLocation, useNavigate } from 'react-router-dom'; +import { Outlet, useLocation, useNavigate } from 'react-router-dom'; import { Stack } from 'leather-styles/jsx'; import get from 'lodash.get'; diff --git a/src/app/query/common/market-data/market-data.hooks.ts b/src/app/query/common/market-data/market-data.hooks.ts index 506bc916320..499fd612837 100644 --- a/src/app/query/common/market-data/market-data.hooks.ts +++ b/src/app/query/common/market-data/market-data.hooks.ts @@ -1,5 +1,4 @@ -import { useMemo } from 'react'; -import { useCallback } from 'react'; +import { useCallback, useMemo } from 'react'; import BigNumber from 'bignumber.js'; @@ -8,8 +7,10 @@ import { MarketData, createMarketData, createMarketPair } from '@shared/models/m import { Money, createMoney, currencyDecimalsMap } from '@shared/models/money.model'; import { calculateMeanAverage } from '@app/common/math/calculate-averages'; -import { convertAmountToFractionalUnit } from '@app/common/money/calculate-money'; -import { baseCurrencyAmountInQuote } from '@app/common/money/calculate-money'; +import { + baseCurrencyAmountInQuote, + convertAmountToFractionalUnit, +} from '@app/common/money/calculate-money'; import { selectBinanceUsdPrice, diff --git a/src/app/store/accounts/blockchain/bitcoin/bitcoin.hooks.ts b/src/app/store/accounts/blockchain/bitcoin/bitcoin.hooks.ts index 1076321a929..9d6b056de0c 100644 --- a/src/app/store/accounts/blockchain/bitcoin/bitcoin.hooks.ts +++ b/src/app/store/accounts/blockchain/bitcoin/bitcoin.hooks.ts @@ -7,9 +7,9 @@ import AppClient from 'ledger-bitcoin'; import { getBitcoinJsLibNetworkConfigByMode } from '@shared/crypto/bitcoin/bitcoin.network'; import { extractAddressIndexFromPath, + getInputPaymentType, getTaprootAddress, } from '@shared/crypto/bitcoin/bitcoin.utils'; -import { getInputPaymentType } from '@shared/crypto/bitcoin/bitcoin.utils'; import { getTaprootAccountDerivationPath } from '@shared/crypto/bitcoin/p2tr-address-gen'; import { getNativeSegwitAccountDerivationPath } from '@shared/crypto/bitcoin/p2wpkh-address-gen'; import { @@ -40,10 +40,12 @@ import { useCurrentAccountNativeSegwitSigner, useCurrentNativeSegwitAccount, useUpdateLedgerSpecificNativeSegwitBip32DerivationForAdddressIndexZero, + useUpdateLedgerSpecificNativeSegwitUtxoHexForAdddressIndexZero, } from './native-segwit-account.hooks'; -import { useUpdateLedgerSpecificNativeSegwitUtxoHexForAdddressIndexZero } from './native-segwit-account.hooks'; -import { useCurrentTaprootAccount } from './taproot-account.hooks'; -import { useUpdateLedgerSpecificTaprootInputPropsForAdddressIndexZero } from './taproot-account.hooks'; +import { + useCurrentTaprootAccount, + useUpdateLedgerSpecificTaprootInputPropsForAdddressIndexZero, +} from './taproot-account.hooks'; // Checks for both TR and NativeSegwit hooks export function useHasCurrentBitcoinAccount() { diff --git a/src/background/background.ts b/src/background/background.ts index 52a7be9dd0f..d2a78af40bd 100755 --- a/src/background/background.ts +++ b/src/background/background.ts @@ -2,8 +2,7 @@ // This file is the entrypoint to the extension's background script // https://developer.chrome.com/docs/extensions/mv3/architecture-overview/#background_script import { logger } from '@shared/logger'; -import { CONTENT_SCRIPT_PORT } from '@shared/message-types'; -import type { LegacyMessageFromContentScript } from '@shared/message-types'; +import { CONTENT_SCRIPT_PORT, type LegacyMessageFromContentScript } from '@shared/message-types'; import { RouteUrls } from '@shared/route-urls'; import { WalletRequests } from '@shared/rpc/rpc-methods'; import { warnUsersAboutDevToolsDangers } from '@shared/utils/dev-tools-warning-log'; diff --git a/src/background/messaging/rpc-methods/accept-bitcoin-contract.ts b/src/background/messaging/rpc-methods/accept-bitcoin-contract.ts index ecbdee03111..bafaf0d2d3f 100644 --- a/src/background/messaging/rpc-methods/accept-bitcoin-contract.ts +++ b/src/background/messaging/rpc-methods/accept-bitcoin-contract.ts @@ -1,8 +1,10 @@ import { RpcErrorCode } from '@btckit/types'; import { RouteUrls } from '@shared/route-urls'; -import { BitcoinContractRequest } from '@shared/rpc/methods/accept-bitcoin-contract'; -import { BitcoinContractResponseStatus } from '@shared/rpc/methods/accept-bitcoin-contract'; +import { + BitcoinContractRequest, + BitcoinContractResponseStatus, +} from '@shared/rpc/methods/accept-bitcoin-contract'; import { makeRpcErrorResponse } from '@shared/rpc/rpc-methods'; import { diff --git a/src/shared/crypto/bitcoin/bitcoin.utils.ts b/src/shared/crypto/bitcoin/bitcoin.utils.ts index 0197364e3cd..9160b3a94e4 100644 --- a/src/shared/crypto/bitcoin/bitcoin.utils.ts +++ b/src/shared/crypto/bitcoin/bitcoin.utils.ts @@ -5,8 +5,7 @@ import * as btc from '@scure/btc-signer'; import { BitcoinNetworkModes, NetworkModes } from '@shared/constants'; import { logger } from '@shared/logger'; -import { defaultWalletKeyId } from '@shared/utils'; -import { isDefined, whenNetwork } from '@shared/utils'; +import { defaultWalletKeyId, isDefined, whenNetwork } from '@shared/utils'; import { DerivationPathDepth } from '../derivation-path.utils'; import { BtcSignerNetwork, getBtcSignerLibNetworkConfigByMode } from './bitcoin.network';