Переглянути джерело

If no proof is requested, it is an error

Cesar Rodas 3 тижнів тому
батько
коміт
ce2ad4762a
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      crates/cdk-sql-common/src/mint/proofs.rs

+ 1 - 1
crates/cdk-sql-common/src/mint/proofs.rs

@@ -351,7 +351,7 @@ where
         ys: &[PublicKey],
         ys: &[PublicKey],
     ) -> Result<Acquired<ProofsWithState>, Self::Err> {
     ) -> Result<Acquired<ProofsWithState>, Self::Err> {
         if ys.is_empty() {
         if ys.is_empty() {
-            return Ok(ProofsWithState::new(vec![], State::Unspent).into());
+            return Err(database::Error::ProofNotFound);
         }
         }
 
 
         let rows = query(
         let rows = query(