Skip to content

Commit

Permalink
feat: transactions use transactions_sort_by
Browse files Browse the repository at this point in the history
  • Loading branch information
reez committed Nov 4, 2024
1 parent b25d48f commit 613e686
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bdk-ffi/src/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ impl Wallet {

pub fn transactions(&self) -> Vec<CanonicalTx> {
self.get_wallet()
.transactions()
.transactions_sort_by(|tx1, tx2| tx2.chain_position.cmp(&tx1.chain_position))
.into_iter()
.map(|tx| tx.into())
.collect()
}
Expand Down

0 comments on commit 613e686

Please sign in to comment.