Skip to content

Commit

Permalink
chore: enable tests
Browse files Browse the repository at this point in the history
* rewrite mocking logic

* remove indexed check for confirmed txs
  • Loading branch information
slavastartsev committed Jan 8, 2025
1 parent 8fb9e13 commit 60492e9
Show file tree
Hide file tree
Showing 2 changed files with 190 additions and 152 deletions.
2 changes: 1 addition & 1 deletion sdk/src/wallet/utxo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const processNodes = async (

const transaction = await esploraClient.getTransaction(childNode.val.txid);

if (childNode.val.indexed && transaction.status.confirmed) {
if (transaction.status.confirmed) {
// if confirmed check if it contains ordinals
childNode.val.cardinal = cardinalOutputsSet.has(OutPoint.toString(childNode.val));
} else if (!childNode.val.indexed || childNode.val.cardinal) {
Expand Down
Loading

0 comments on commit 60492e9

Please sign in to comment.