浏览代码

Fix missing try_proof_operation_or_reclaim wrapping of a swap (#1278)

C 4 天之前
父节点
当前提交
501e72f7c7
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      crates/cdk/src/wallet/receive.rs

+ 6 - 1
crates/cdk/src/wallet/receive.rs

@@ -126,7 +126,12 @@ impl Wallet {
             }
         }
 
-        let swap_response = self.client.post_swap(pre_swap.swap_request).await?;
+        let swap_response = self
+            .try_proof_operation_or_reclaim(
+                pre_swap.swap_request.inputs().clone(),
+                self.client.post_swap(pre_swap.swap_request),
+            )
+            .await?;
 
         // Proof to keep
         let recv_proofs = construct_proofs(