Skip to content

Commit fde8739

Browse files
committed
fix: alloy breaking changes
1 parent 6907bd7 commit fde8739

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,14 @@ trevm = { version = "0.31.2", features = ["full_env_cfg"] }
6464
revm-inspectors = "0.32.0" # should be 1 more than trevm version, usually
6565

6666
# Alloy periphery crates
67-
alloy = { version = "1.0.35", features = [
67+
alloy = { version = "1.4.0", features = [
6868
"full",
6969
"rpc-types-beacon",
7070
"rpc-types-mev",
7171
"genesis",
7272
"arbitrary",
7373
] }
74-
alloy-contract = { version = "1.0.35", features = ["pubsub"] }
74+
alloy-contract = { version = "1.4.0", features = ["pubsub"] }
7575

7676
# Reth
7777
reth = { git = "https://github.com/paradigmxyz/reth", tag = "v1.9.1" }

crates/db/src/consistency.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,11 @@ where
4343

4444
debug!("Checking static file consistency.");
4545

46-
let last_good_height: Option<BlockNumber> = None;
46+
let mut last_good_height: Option<BlockNumber> = None;
4747

48-
let update_last_good_height = |new_height: BlockNumber| {
49-
last_good_height.map(|current| current.max(new_height)).or(Some(new_height))
48+
let mut update_last_good_height = |new_height: BlockNumber| {
49+
last_good_height =
50+
last_good_height.map(|current| current.min(new_height)).or(Some(new_height));
5051
};
5152

5253
for segment in StaticFileSegment::iter() {
@@ -168,7 +169,7 @@ where
168169
/// then [`None`] will be returned.
169170
///
170171
/// [`TxNumber`]: alloy::primitives::TxNumber
171-
#[instrument(skip(this), fields(table = T::NAME))]
172+
#[instrument(skip(this, segment), fields(table = T::NAME))]
172173
fn ensure_invariants<Db, T: Table<Key = u64>>(
173174
this: &ProviderFactory<SignetNodeTypes<Db>>,
174175
segment: StaticFileSegment,

crates/node-tests/src/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ impl SignetTestContext {
142142
// after RPC booted, we can create the alloy provider
143143
let alloy_provider = ProviderBuilder::new_with_network()
144144
.disable_recommended_fillers()
145-
.filler(BlobGasFiller)
145+
.filler(BlobGasFiller::default())
146146
.with_gas_estimation()
147147
.with_nonce_management(SimpleNonceManager::default())
148148
.with_chain_id(constants.ru_chain_id())

0 commit comments

Comments
 (0)