From c3762269106206a7974b07e13c5ffaf630571e1b Mon Sep 17 00:00:00 2001 From: thesimplekid Date: Fri, 19 Jul 2024 09:13:09 +0100 Subject: [PATCH] fix(redb): adding proof state to returned list twice --- crates/cdk-redb/src/mint/mod.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/crates/cdk-redb/src/mint/mod.rs b/crates/cdk-redb/src/mint/mod.rs index 47ecbd6c..f9fc361d 100644 --- a/crates/cdk-redb/src/mint/mod.rs +++ b/crates/cdk-redb/src/mint/mod.rs @@ -604,15 +604,9 @@ impl MintDatabase for MintRedbDatabase { states.push(current_state); if current_state != Some(State::Spent) { - match table + table .insert(y.to_bytes(), state_str.as_str()) - .map_err(Error::from)? - { - Some(state) => states.push(Some( - serde_json::from_str(state.value()).map_err(Error::from)?, - )), - None => states.push(None), - } + .map_err(Error::from)?; } } }