Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
altafan committed Feb 29, 2024
1 parent b2a0895 commit 012489b
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,16 +273,12 @@ func (r *utxoRepository) getUtxosForAccount(

filteredUtxos := make([]*domain.Utxo, 0, len(utxos))
for _, u := range utxos {
found := false
for _, script := range scripts {
if bytes.Equal(u.Script, script) {
found = true
filteredUtxos = append(filteredUtxos, u)
break
}
}
if found {
filteredUtxos = append(filteredUtxos, u)
}
}
return filteredUtxos, nil
}
Expand Down

0 comments on commit 012489b

Please sign in to comment.