From e434fa424c5e094c8d884d5b08b174a087f71773 Mon Sep 17 00:00:00 2001 From: Tal Derei Date: Sat, 30 Nov 2024 14:24:37 -0800 Subject: [PATCH] fix infinite recursion --- crates/core/transaction/src/transaction.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/crates/core/transaction/src/transaction.rs b/crates/core/transaction/src/transaction.rs index 7c9036c9b5..ad3e712f37 100644 --- a/crates/core/transaction/src/transaction.rs +++ b/crates/core/transaction/src/transaction.rs @@ -721,7 +721,12 @@ impl From for pbt::Transaction { impl From<&Transaction> for pbt::Transaction { fn from(msg: &Transaction) -> Self { - msg.into() + Transaction { + transaction_body: msg.transaction_body.clone(), + anchor: msg.anchor.clone(), + binding_sig: msg.binding_sig.clone(), + } + .into() } }