Skip to content

Commit

Permalink
Update crates/cdk-sqlite/src/mint/mod.rs
Browse files Browse the repository at this point in the history
Co-authored-by: ok300 <[email protected]>
  • Loading branch information
thesimplekid and ok300 authored Mar 5, 2025
1 parent d035429 commit 7eb1cc6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/cdk-sqlite/src/mint/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ impl MintSqliteDatabase {
transaction: &mut sqlx::Transaction<'_, sqlx::Sqlite>,
ys: &[PublicKey],
) -> Result<bool, database::Error> {
if ys.is_empty() {
return Ok(false);
}

let check_sql = format!(
"SELECT state FROM proof WHERE y IN ({}) AND state = 'SPENT'",
std::iter::repeat("?")
Expand Down

0 comments on commit 7eb1cc6

Please sign in to comment.