From 258f0b00a02a946b4c3eec1fda6cdd5b1ab3bb1f Mon Sep 17 00:00:00 2001 From: Fara Woolf Date: Tue, 17 Dec 2024 19:27:47 -0500 Subject: [PATCH] refactor: remove utxo filtering --- .../bitcoin/address/utxos-by-address.hooks.ts | 20 ++++--------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/src/app/query/bitcoin/address/utxos-by-address.hooks.ts b/src/app/query/bitcoin/address/utxos-by-address.hooks.ts index 7aaf3a6fd0f..0b86e2e17f7 100644 --- a/src/app/query/bitcoin/address/utxos-by-address.hooks.ts +++ b/src/app/query/bitcoin/address/utxos-by-address.hooks.ts @@ -2,26 +2,14 @@ import { useNativeSegwitUtxosByAddress } from '@leather.io/query'; import { useCurrentAccountNativeSegwitIndexZeroSigner } from '@app/store/accounts/blockchain/bitcoin/native-segwit-account.hooks'; -const defaultArgs = { - filterInscriptionUtxos: true, - filterPendingTxsUtxos: true, - filterRunesUtxos: true, -}; - -/** - * Warning: ⚠️ To avoid spending inscriptions, when using UTXOs - * we set `filterInscriptionUtxos` and `filterPendingTxsUtxos` to true - */ -export function useCurrentNativeSegwitUtxos(args = defaultArgs) { - const { filterInscriptionUtxos, filterPendingTxsUtxos, filterRunesUtxos } = args; - +export function useCurrentNativeSegwitUtxos() { const nativeSegwitSigner = useCurrentAccountNativeSegwitIndexZeroSigner(); const address = nativeSegwitSigner.address; return useNativeSegwitUtxosByAddress({ address, - filterInscriptionUtxos, - filterPendingTxsUtxos, - filterRunesUtxos, + filterInscriptionUtxos: false, + filterPendingTxsUtxos: true, + filterRunesUtxos: false, }); }