From 2f62377eec547e0654899a19771ba44add7066ae Mon Sep 17 00:00:00 2001 From: thunderbiscuit Date: Thu, 23 Mar 2023 12:48:04 -0400 Subject: [PATCH] Add Eq and PartialEq traits on the Transaction type --- bdk-ffi/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bdk-ffi/src/lib.rs b/bdk-ffi/src/lib.rs index f0e8fa2..04cc955 100644 --- a/bdk-ffi/src/lib.rs +++ b/bdk-ffi/src/lib.rs @@ -96,7 +96,7 @@ impl From for BdkAddressIndex { } /// A wallet transaction -#[derive(Debug, Clone, Default)] +#[derive(Debug, Clone, PartialEq, Eq, Default)] pub struct TransactionDetails { pub transaction: Option>, /// Transaction id. @@ -279,7 +279,7 @@ impl From<&bdk::bitcoin::blockdata::transaction::TxIn> for TxIn { } /// A Bitcoin transaction. -#[derive(Debug, Clone)] +#[derive(Debug, Clone, PartialEq, Eq)] pub struct Transaction { internal: BdkTransaction, }