From 1e5440e1c117893a37a4978a756d5ffa3851394b Mon Sep 17 00:00:00 2001 From: patrini32 <171664803+patrini32@users.noreply.github.com> Date: Wed, 12 Jun 2024 23:15:20 +0300 Subject: [PATCH] fix typo --- swap/src/cli/cancel_and_refund.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swap/src/cli/cancel_and_refund.rs b/swap/src/cli/cancel_and_refund.rs index a00f721a..5a888494 100644 --- a/swap/src/cli/cancel_and_refund.rs +++ b/swap/src/cli/cancel_and_refund.rs @@ -82,8 +82,8 @@ pub async fn cancel( } else if error_code == i64::from(RpcErrorCode::RpcVerifyError) { tracing::info!("General error trying to submit cancel transaction"); } - let state = BobState::BtcCancelled(state6); let txid = state6.construct_tx_cancel()?.txid(); + let state = BobState::BtcCancelled(state6); db.insert_latest_state(swap_id, state.clone().into()) .await?; Ok((txid, state))