瀏覽代碼

`cashu-sdk/mint` fix: `check_spendable` pending proofs check was inverted

thesimplekid 1 年之前
父節點
當前提交
2558ef758b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      crates/cashu-sdk/src/mint.rs

+ 1 - 1
crates/cashu-sdk/src/mint.rs

@@ -226,7 +226,7 @@ impl Mint {
 
         for proof in &check_spendable.proofs {
             spendable.push(!self.spent_secrets.contains(&proof.secret));
-            pending.push(!self.pending_secrets.contains(&proof.secret));
+            pending.push(self.pending_secrets.contains(&proof.secret));
         }
 
         Ok(CheckSpendableResponse { spendable, pending })