Skip to content

Commit

Permalink
wallet - sort splits
Browse files Browse the repository at this point in the history
  • Loading branch information
elnosh committed Oct 28, 2024
1 parent 67099ff commit d80c23c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wallet/wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -1353,6 +1353,7 @@ func (w *Wallet) splitWalletTarget(amountToSplit uint64, mint string) []uint64 {
if remainingAmount > 0 {
amounts = append(amounts, cashu.AmountSplit(remainingAmount)...)
}
slices.Sort(amounts)

return amounts
}
Expand Down

0 comments on commit d80c23c

Please sign in to comment.