Skip to content

Commit cd05cc9

Browse files
committed
smol updates
1 parent 241d796 commit cd05cc9

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/tasks/block/cfg.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
//! This file implements the [`trevm::Cfg`] and [`trevm::Block`] traits for Signet and host networks.
2-
3-
use alloy_chains::NamedChain;
42
use reth_chainspec::ChainSpec;
53
use signet_block_processor::revm_spec;
64
use signet_constants::{mainnet, pecorino};
@@ -39,10 +37,7 @@ impl SignetCfgEnv {
3937
}
4038
// Mainnet RU
4139
mainnet::RU_CHAIN_ID => revm_spec(&MAINNET_RU_SPEC, self.timestamp),
42-
// Mainnet Host
43-
id if id == NamedChain::Mainnet as u64 => {
44-
revm_spec(&reth_chainspec::MAINNET, self.timestamp)
45-
}
40+
mainnet::HOST_CHAIN_ID => revm_spec(&reth_chainspec::MAINNET, self.timestamp),
4641
_ => unimplemented!("Unknown chain ID: {}", self.chain_id),
4742
}
4843
}
@@ -58,6 +53,7 @@ impl trevm::Cfg for SignetCfgEnv {
5853
#[cfg(test)]
5954
mod tests {
6055
use super::*;
56+
use alloy_chains::NamedChain;
6157
use alloy_hardforks::mainnet::MAINNET_OSAKA_TIMESTAMP;
6258

6359
#[test]

0 commit comments

Comments
 (0)