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?;