Skip to content

Commit

Permalink
chore: add helper function for spec id (#1130)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Feb 27, 2024
1 parent 1ad6387 commit a0e45a5
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 a0e45a5

Please sign in to comment.