From 98975ef68a626faaceb6595c69aea4adfcb26c1b Mon Sep 17 00:00:00 2001 From: Yash Atreya <44857776+yash-atreya@users.noreply.github.com> Date: Mon, 30 Sep 2024 16:11:23 +0530 Subject: [PATCH 1/2] chore: bump alloy 0.4 --- Cargo.toml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 2b01ab1..87309d7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,10 +26,10 @@ rustdoc-args = ["--cfg", "docsrs"] [dependencies] alloy-primitives = { version = "0.8.5", features = ["map"] } -alloy-provider = { version = "0.3", default-features = false } -alloy-rpc-types = { version = "0.3", features = ["eth"] } -alloy-serde = { version = "0.3", default-features = false } -alloy-transport = { version = "0.3", default-features = false } +alloy-provider = { version = "0.4", default-features = false } +alloy-rpc-types = { version = "0.4", features = ["eth"] } +alloy-serde = { version = "0.4", default-features = false } +alloy-transport = { version = "0.4", default-features = false } eyre = "0.6" futures = "0.3" @@ -51,5 +51,5 @@ tracing = "0.1" url = "2" [dev-dependencies] -alloy-rpc-client = "0.3" -alloy-transport-http = "0.3" +alloy-rpc-client = "0.4" +alloy-transport-http = "0.4" From caf4c59428189e0027d8572279834c7039869a08 Mon Sep 17 00:00:00 2001 From: Yash Atreya <44857776+yash-atreya@users.noreply.github.com> Date: Mon, 30 Sep 2024 16:16:22 +0530 Subject: [PATCH 2/2] nit --- src/cache.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cache.rs b/src/cache.rs index f87846b..6d7998c 100644 --- a/src/cache.rs +++ b/src/cache.rs @@ -157,7 +157,7 @@ impl BlockchainDbMeta { gas_limit: U256::from(block.header.gas_limit()), prevrandao: block.header.mix_hash(), blob_excess_gas_and_price: Some(BlobExcessGasAndPrice::new( - block.header.excess_blob_gas.map(|gas| gas as u64).unwrap_or_default(), + block.header.excess_blob_gas.unwrap_or_default(), )), };