From 35d8fb3139e1de645e0299c27762f2fb938a99f6 Mon Sep 17 00:00:00 2001 From: thunderbiscuit Date: Thu, 23 Mar 2023 13:14:48 -0400 Subject: [PATCH] Clean up extract_tx method on PSBT --- bdk-ffi/src/psbt.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bdk-ffi/src/psbt.rs b/bdk-ffi/src/psbt.rs index 2184ffc..d25a9f0 100644 --- a/bdk-ffi/src/psbt.rs +++ b/bdk-ffi/src/psbt.rs @@ -1,4 +1,3 @@ -use bdk::bitcoin::consensus::serialize; use bdk::bitcoin::hashes::hex::ToHex; use bdk::bitcoin::util::psbt::PartiallySignedTransaction as BdkPartiallySignedTransaction; use bdk::psbt::PsbtUtils; @@ -35,8 +34,9 @@ impl PartiallySignedTransaction { /// Return the transaction. pub(crate) fn extract_tx(&self) -> Arc { let tx = self.internal.lock().unwrap().clone().extract_tx(); - let buffer: Vec = serialize(&tx); - Arc::new(Transaction::new(buffer).unwrap()) + Arc::new(tx.into()) + // let buffer: Vec = serialize(&tx); + // Arc::new(Transaction::new(buffer).unwrap()) } /// Combines this PartiallySignedTransaction with other PSBT as described by BIP 174.