Skip to content

Commit

Permalink
chore: add helper function for spec id (bluealloy#1130)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored and fubuloubu committed Apr 11, 2024
1 parent cf47d51 commit be9a472
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crates/primitives/src/env/handler_cfg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ impl EnvWithHandlerCfg {
Self::new(Env::boxed(cfg.cfg_env, block, tx), cfg.handler_cfg)
}

/// Returns the specification id.
pub const fn spec_id(&self) -> SpecId {
self.handler_cfg.spec_id
}

/// Enables the optimism handle register.
#[cfg(feature = "optimism")]
pub fn enable_optimism(&mut self) {
Expand Down

0 comments on commit be9a472

Please sign in to comment.