Kaynağa Gözat

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

thesimplekid 1 yıl önce
ebeveyn
işleme
2558ef758b
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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 })