From a1681212b1d3eaa79e29f2b6dd961296f2322cbc Mon Sep 17 00:00:00 2001 From: thesimplekid Date: Wed, 5 Feb 2025 11:32:04 +0000 Subject: [PATCH] fix: redb delete proof state --- crates/cdk-redb/src/mint/mod.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/crates/cdk-redb/src/mint/mod.rs b/crates/cdk-redb/src/mint/mod.rs index 87d45e37..0a5a7656 100644 --- a/crates/cdk-redb/src/mint/mod.rs +++ b/crates/cdk-redb/src/mint/mod.rs @@ -549,6 +549,17 @@ impl MintDatabase for MintRedbDatabase { } } + { + let mut proof_state_table = write_txn + .open_table(PROOFS_STATE_TABLE) + .map_err(Error::from)?; + for y in ys { + proof_state_table + .remove(&y.to_bytes()) + .map_err(Error::from)?; + } + } + if let Some(quote_id) = quote_id { let mut quote_proofs_table = write_txn .open_multimap_table(QUOTE_PROOFS_TABLE)