From a687f82d850c736feda7740083ea0ff119138b86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrzej=20Bro=C5=84ski?= Date: Mon, 4 Mar 2024 14:56:54 +0100 Subject: [PATCH] Replace `PublicKey` and `Signature` with plain `Vec`. --- kairos-server/src/lib.rs | 4 ++-- kairos-server/src/routes/deposit.rs | 2 +- kairos-server/src/routes/withdraw.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/kairos-server/src/lib.rs b/kairos-server/src/lib.rs index 7efc0001..7bc45aae 100644 --- a/kairos-server/src/lib.rs +++ b/kairos-server/src/lib.rs @@ -9,8 +9,8 @@ use state::LockedBatchState; pub use errors::AppErr; -type PublicKey = String; -type Signature = String; +type PublicKey = Vec; +type Signature = Vec; pub fn app_router(state: LockedBatchState) -> Router { Router::new() diff --git a/kairos-server/src/routes/deposit.rs b/kairos-server/src/routes/deposit.rs index f40cecd8..b77ccb7f 100644 --- a/kairos-server/src/routes/deposit.rs +++ b/kairos-server/src/routes/deposit.rs @@ -42,7 +42,7 @@ pub async fn deposit_handler( *balance = updated_balance; tracing::info!( - "Updated account public_key={} balance={}", + "Updated account public_key={:?} balance={}", public_key, updated_balance ); diff --git a/kairos-server/src/routes/withdraw.rs b/kairos-server/src/routes/withdraw.rs index 2fdf0968..3fb72bc5 100644 --- a/kairos-server/src/routes/withdraw.rs +++ b/kairos-server/src/routes/withdraw.rs @@ -63,7 +63,7 @@ pub async fn withdraw_handler( } tracing::info!( - "Updated account public_key={} balance={}", + "Updated account public_key={:?} balance={}", withdrawal.public_key, updated_balance );