diff --git a/crates/primitives/src/env.rs b/crates/primitives/src/env.rs index 9a4470a912..9d0bc100a1 100644 --- a/crates/primitives/src/env.rs +++ b/crates/primitives/src/env.rs @@ -338,6 +338,11 @@ pub struct CfgEnv { } impl CfgEnv { + pub fn with_chain_id(mut self, chain_id: u64) -> Self { + self.chain_id = chain_id; + self + } + #[cfg(feature = "optional_eip3607")] pub fn is_eip3607_disabled(&self) -> bool { self.disable_eip3607