Skip to content

Commit

Permalink
fix: send inscription form fee flow
Browse files Browse the repository at this point in the history
  • Loading branch information
alter-eggo committed Jan 22, 2024
1 parent 9b75521 commit ee9728d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { OrdinalSendFormValues } from '@shared/models/form.model';

import { determineUtxosForSpend } from '@app/common/transactions/bitcoin/coinselect/local-coin-selection';
import { createCounter } from '@app/common/utils/counter';
import { useCurrentNativeSegwitUtxos } from '@app/query/bitcoin/address/utxos-by-address.hooks';
import { useCurrentNativeSegwitAccountSpendableUtxos } from '@app/query/bitcoin/address/utxos-by-address.hooks';
import { TaprootUtxo } from '@app/query/bitcoin/bitcoin-client';
import { useBitcoinScureLibNetworkConfig } from '@app/store/accounts/blockchain/bitcoin/bitcoin-keychain';
import { useCurrentAccountNativeSegwitSigner } from '@app/store/accounts/blockchain/bitcoin/native-segwit-account.hooks';
Expand All @@ -19,7 +19,7 @@ export function useGenerateUnsignedOrdinalTx(taprootInput: TaprootUtxo) {
const createTaprootSigner = useCurrentAccountTaprootSigner();
const createNativeSegwitSigner = useCurrentAccountNativeSegwitSigner();
const networkMode = useBitcoinScureLibNetworkConfig();
const { data: nativeSegwitUtxos } = useCurrentNativeSegwitUtxos();
const { data: nativeSegwitUtxos } = useCurrentNativeSegwitAccountSpendableUtxos();

function coverFeeFromAdditionalUtxos(values: OrdinalSendFormValues) {
if (getAddressInfo(values.inscription.address).type === AddressType.p2wpkh) {
Expand Down

0 comments on commit ee9728d

Please sign in to comment.