From 4ac69f14cd300f7be73692fd49bcec7655dee0fe Mon Sep 17 00:00:00 2001 From: Marcin Wajdzik Date: Tue, 22 Oct 2024 14:32:17 +0200 Subject: [PATCH] chore: converting to i32 due to issues with parsing --- crates/l2-micro-service/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/l2-micro-service/src/main.rs b/crates/l2-micro-service/src/main.rs index 0bbe34b..5bf3853 100644 --- a/crates/l2-micro-service/src/main.rs +++ b/crates/l2-micro-service/src/main.rs @@ -69,7 +69,7 @@ async fn connect_db(db_url: &str) -> Result { #[derive(Serialize, Debug)] struct HighestBlock { chain: String, - block_number: u32, + block_number: i32, } async fn handle_get_highest_l2_block( @@ -88,7 +88,7 @@ async fn handle_get_highest_l2_block( if rows.is_empty() { Err(eyre::eyre!("Expected at least 1 row")) } else { - let block_number: u32 = rows[0].get(0); + let block_number: i32 = rows[0].get(0); Ok(HighestBlock { chain: network.to_string(),