Browse Source

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

thesimplekid 1 year ago
parent
commit
2558ef758b
1 changed files with 1 additions and 1 deletions
  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 })