Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: converting to i32 due to issues with parsing #12

Merged
merged 1 commit into from
Oct 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading