fix(redb): adding proof state to returned list twice

This commit is contained in:
thesimplekid
2024-07-19 09:13:09 +01:00
parent 6705761aec
commit c376226910

View File

@@ -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)?;
}
}
}