Skip to content

Commit

Permalink
fix: queries
Browse files Browse the repository at this point in the history
  • Loading branch information
ngutech21 committed Sep 27, 2024
1 parent 3b15561 commit 7dc6c2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions moksha-wallet/src/localstore/sqlite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ impl LocalStore for SqliteLocalStore {
&self,
tx: &mut sqlx::Transaction<Self::DB>,
) -> Result<Proofs, MokshaWalletError> {
let rows = sqlx::query!("SELECT keyset_id, amount, C, secret FROM proofs;")
let rows = sqlx::query!("SELECT keyset_id, amount as Integer, C, secret FROM proofs;")
.fetch_all(&mut **tx)
.await?;

Expand Down Expand Up @@ -114,7 +114,7 @@ impl LocalStore for SqliteLocalStore {
&self,
tx: &mut sqlx::Transaction<Self::DB>,
) -> Result<Vec<WalletKeyset>, MokshaWalletError> {
let rows = sqlx::query!("SELECT id, mint_url, keyset_id, currency_unit, active, last_index, public_keys FROM keysets;")
let rows = sqlx::query!("SELECT id as Integer, mint_url, keyset_id, currency_unit, active, last_index, public_keys FROM keysets;")
.fetch_all(&mut **tx)
.await?;

Expand Down

0 comments on commit 7dc6c2e

Please sign in to comment.