File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 11//! This file implements the [`trevm::Cfg`] and [`trevm::Block`] traits for Signet and host networks.
2-
3- use alloy_chains:: NamedChain ;
42use reth_chainspec:: ChainSpec ;
53use signet_block_processor:: revm_spec;
64use 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) ]
5954mod tests {
6055 use super :: * ;
56+ use alloy_chains:: NamedChain ;
6157 use alloy_hardforks:: mainnet:: MAINNET_OSAKA_TIMESTAMP ;
6258
6359 #[ test]
You can’t perform that action at this time.
0 commit comments