Skip to content

Commit

Permalink
chore: remove filtering for total balance too
Browse files Browse the repository at this point in the history
  • Loading branch information
kyranjamie committed Dec 18, 2024
1 parent 258f0b0 commit 7a65b42
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 5 additions & 1 deletion src/app/query/bitcoin/address/utxos-by-address.hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@ export function useCurrentNativeSegwitUtxos() {
const nativeSegwitSigner = useCurrentAccountNativeSegwitIndexZeroSigner();
const address = nativeSegwitSigner.address;

return useNativeSegwitUtxosByAddress({
const query = useNativeSegwitUtxosByAddress({
address,
filterInscriptionUtxos: false,
filterPendingTxsUtxos: true,
filterRunesUtxos: false,
});

console.log(query.data);

Check failure on line 16 in src/app/query/bitcoin/address/utxos-by-address.hooks.ts

View workflow job for this annotation

GitHub Actions / lint-eslint

Unexpected console statement

return query;
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ function createBtcCryptoAssetBalance(balance: Money): BtcCryptoAssetBalance {

export function useBtcCryptoAssetBalanceNativeSegwit(address: string) {
const runesEnabled = useRunesEnabled();
console.log({ runesEnabled });

Check failure on line 21 in src/app/query/bitcoin/balance/btc-balance-native-segwit.hooks.ts

View workflow job for this annotation

GitHub Actions / lint-eslint

Unexpected console statement

// Force filtering off here too
const query = useNativeSegwitUtxosByAddress({
address,
filterInscriptionUtxos: true,
filterInscriptionUtxos: false,
filterPendingTxsUtxos: true,
filterRunesUtxos: runesEnabled,
filterRunesUtxos: false,
});

const balance = useMemo(() => {
Expand Down

0 comments on commit 7a65b42

Please sign in to comment.