mirror of
https://github.com/aljazceru/cdk.git
synced 2026-02-23 14:06:56 +01:00
fix(redb): adding proof state to returned list twice
This commit is contained in:
@@ -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)?;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user