Skip to content

Commit

Permalink
Implement with_chain_id for CfgEnv (bluealloy#1327)
Browse files Browse the repository at this point in the history
* Implement with_chain_id for CfgEnv

* cargo fmt

* fix comments
  • Loading branch information
tcoratger authored Apr 21, 2024
1 parent e987d2b commit bcdc652
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crates/primitives/src/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bcdc652

Please sign in to comment.