From 1243108f9490b78a8cf9097501e4a4675d12cc6f Mon Sep 17 00:00:00 2001 From: patrini32 <171664803+patrini32@users.noreply.github.com> Date: Wed, 12 Jun 2024 23:10:37 +0300 Subject: [PATCH] fix error --- swap/src/protocol/bob/state.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/swap/src/protocol/bob/state.rs b/swap/src/protocol/bob/state.rs index 9c15626d..5dff9848 100644 --- a/swap/src/protocol/bob/state.rs +++ b/swap/src/protocol/bob/state.rs @@ -653,7 +653,7 @@ impl State6 { self.A, self.b.public(), self.tx_cancel_fee, - )?; + ) } pub async fn check_for_tx_cancel( &self, @@ -687,13 +687,7 @@ impl State6 { } pub fn signed_refund_transaction(&self) -> Result { - let tx_cancel = bitcoin::TxCancel::new( - &self.tx_lock, - self.cancel_timelock, - self.A, - self.b.public(), - self.tx_cancel_fee, - )?; + let tx_cancel = self.construct_tx_cancel()?; let tx_refund = bitcoin::TxRefund::new(&tx_cancel, &self.refund_address, self.tx_refund_fee);