Skip to content

Commit

Permalink
chore: undo renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jan 22, 2025
1 parent 232e91b commit 9aca6bb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/toolboxes/utxo/src/toolbox/utxo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down Expand Up @@ -371,18 +371,18 @@ export const utxoValidateAddress = ({
address: string;
}) =>
chain === Chain.BitcoinCash
? validateBchAddress(address)
? validateBCHAddress(address)
: validateAddress({
address,
chain,
});

export type BaseUTXOWallet = ReturnType<typeof BaseUTXOToolbox>;
type UtxoWalletType = {
type UTXOWalletType = {
[Chain.Bitcoin]: ReturnType<typeof BTCToolbox>;
[Chain.BitcoinCash]: ReturnType<typeof BCHToolbox>;
[Chain.Dogecoin]: ReturnType<typeof DOGEToolbox>;
[Chain.Litecoin]: ReturnType<typeof LTCToolbox>;
[Chain.Dash]: ReturnType<typeof DASHToolbox>;
};
export type UTXOWallets = { [chain in UTXOChain]: BaseUTXOWallet & UtxoWalletType[chain] };
export type UTXOWallets = { [chain in UTXOChain]: BaseUTXOWallet & UTXOWalletType[chain] };

0 comments on commit 9aca6bb

Please sign in to comment.