From 7dc6c2edffeda03c44441da038678b379add1e66 Mon Sep 17 00:00:00 2001 From: ngutech21 Date: Fri, 27 Sep 2024 11:35:37 +0200 Subject: [PATCH] fix: queries --- moksha-wallet/src/localstore/sqlite.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moksha-wallet/src/localstore/sqlite.rs b/moksha-wallet/src/localstore/sqlite.rs index 6f414118..ae784c3d 100644 --- a/moksha-wallet/src/localstore/sqlite.rs +++ b/moksha-wallet/src/localstore/sqlite.rs @@ -73,7 +73,7 @@ impl LocalStore for SqliteLocalStore { &self, tx: &mut sqlx::Transaction, ) -> Result { - 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?; @@ -114,7 +114,7 @@ impl LocalStore for SqliteLocalStore { &self, tx: &mut sqlx::Transaction, ) -> Result, 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?;