Skip to content

Commit

Permalink
fix doc
Browse files Browse the repository at this point in the history
  • Loading branch information
klkvr committed Sep 27, 2024
1 parent 6373bda commit 2898303
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions crates/optimism/consensus/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,7 @@ pub struct OptimismBeaconConsensus {

impl OptimismBeaconConsensus {
/// Create a new instance of [`OptimismBeaconConsensus`]
///
/// # Panics
///
/// If given chain spec is not optimism [`ChainSpec::is_optimism`]
pub fn new(chain_spec: Arc<OpChainSpec>) -> Self {
assert!(chain_spec.is_optimism(), "optimism consensus only valid for optimism chains");
Self { chain_spec }
}
}
Expand Down

0 comments on commit 2898303

Please sign in to comment.