瀏覽代碼

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