diff --git a/packages/toolboxes/utxo/src/toolbox/utxo.ts b/packages/toolboxes/utxo/src/toolbox/utxo.ts index 635c0aaf8..b2357eeda 100644 --- a/packages/toolboxes/utxo/src/toolbox/utxo.ts +++ b/packages/toolboxes/utxo/src/toolbox/utxo.ts @@ -30,7 +30,7 @@ import { getNetwork, standardFeeRates, } from "../utils/index"; -import { validateAddress as validateBchAddress } from "./bitcoinCash"; +import { validateAddress as validateBCHAddress } from "./bitcoinCash"; import type { BCHToolbox, BTCToolbox, DASHToolbox, DOGEToolbox, LTCToolbox } from "./index"; export const nonSegwitChains = [Chain.Dash, Chain.Dogecoin]; @@ -371,18 +371,18 @@ export const utxoValidateAddress = ({ address: string; }) => chain === Chain.BitcoinCash - ? validateBchAddress(address) + ? validateBCHAddress(address) : validateAddress({ address, chain, }); export type BaseUTXOWallet = ReturnType; -type UtxoWalletType = { +type UTXOWalletType = { [Chain.Bitcoin]: ReturnType; [Chain.BitcoinCash]: ReturnType; [Chain.Dogecoin]: ReturnType; [Chain.Litecoin]: ReturnType; [Chain.Dash]: ReturnType; }; -export type UTXOWallets = { [chain in UTXOChain]: BaseUTXOWallet & UtxoWalletType[chain] }; +export type UTXOWallets = { [chain in UTXOChain]: BaseUTXOWallet & UTXOWalletType[chain] };