소스 검색

fix: mint mem delete proof state

thesimplekid 4 달 전
부모
커밋
55c095c2ef
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      crates/cdk/src/cdk_database/mint_memory.rs

+ 8 - 0
crates/cdk/src/cdk_database/mint_memory.rs

@@ -297,6 +297,14 @@ impl MintDatabase for MintMemoryDatabase {
             });
         }
 
+        {
+            let mut db_proofs_state = self.proof_state.lock().await;
+
+            ys.iter().for_each(|y| {
+                db_proofs_state.remove(&y.to_bytes());
+            });
+        }
+
         if let Some(quote_id) = quote_id {
             let mut quote_proofs = self.quote_proofs.lock().await;
             quote_proofs.remove(&quote_id);