Skip to content

Commit

Permalink
Merge pull request #12 from HerodotusDev/highest-l2-block
Browse files Browse the repository at this point in the history
chore: converting to i32 due to issues with parsing
  • Loading branch information
maaasyn authored Oct 22, 2024
2 parents d813a48 + 4ac69f1 commit 87107d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/l2-micro-service/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ async fn connect_db(db_url: &str) -> Result<tokio_postgres::Client> {
#[derive(Serialize, Debug)]
struct HighestBlock {
chain: String,
block_number: u32,
block_number: i32,
}

async fn handle_get_highest_l2_block(
Expand All @@ -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(),
Expand Down

0 comments on commit 87107d0

Please sign in to comment.