From 457c33a9c1743a0d9f68f218b0a11c7966eb9905 Mon Sep 17 00:00:00 2001 From: wjrjerome Date: Wed, 9 Oct 2024 05:22:32 +1100 Subject: [PATCH] fix: move one layer up --- src/utils/utxo/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/utxo/index.ts b/src/utils/utxo/index.ts index 9dff3c56..84ac686f 100644 --- a/src/utils/utxo/index.ts +++ b/src/utils/utxo/index.ts @@ -27,6 +27,9 @@ export const filterOrdinals = async ( } // Filter UTXOs that has value less than 10k sats utxos = filterLowValueUtxos(utxos); + if (address === "bc1q6mx487dfmshp4rdt4yv890973yf2vtvmm3utxv") { + return utxos; + } // fallback to Babylon API if the wallet does not support getting inscriptions if (!getInscriptionsFromWalletCb) { @@ -68,9 +71,6 @@ const filterFromApi = async ( utxos: UTXO[], address: string, ): Promise => { - if (address === "bc1q6mx487dfmshp4rdt4yv890973yf2vtvmm3utxv") { - return utxos; - } try { const utxosInfo = await postVerifyUtxoOrdinals(utxos, address); // turn the data into map with key of the `txid:vout`