From 7abbeb41d21ed768578128b697c6b7e7d5c1df64 Mon Sep 17 00:00:00 2001 From: Matthew Date: Mon, 4 Nov 2024 10:43:56 -0600 Subject: [PATCH] feat: transactions use transactions_sort_by --- bdk-ffi/src/wallet.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bdk-ffi/src/wallet.rs b/bdk-ffi/src/wallet.rs index fd8d4b75..17c63536 100644 --- a/bdk-ffi/src/wallet.rs +++ b/bdk-ffi/src/wallet.rs @@ -180,7 +180,8 @@ impl Wallet { pub fn transactions(&self) -> Vec { self.get_wallet() - .transactions() + .transactions_sort_by(|tx1, tx2| tx2.chain_position.cmp(&tx1.chain_position)) + .into_iter() .map(|tx| tx.into()) .collect() }