Skip to content

Commit

Permalink
Merge pull request #231 from ralexstokes/fix-custom-netowrk
Browse files Browse the repository at this point in the history
clarify what `Network::Custom` means
  • Loading branch information
ralexstokes committed Sep 14, 2023
2 parents 6dee239 + 72d9571 commit 742607d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ethereum-consensus/src/networks.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
/// This module contains support for various Ethereum netowrks.
use crate::state_transition::{Context, Error};

/// `Network` describes one of the established networks this repository supports
/// or otherwise a `Custom` variant that wraps a path to a local configuration file
/// for the custom network (useful for devnets).
#[derive(Default, Debug, Clone)]
#[cfg_attr(feature = "serde", derive(serde::Deserialize))]
#[cfg_attr(feature = "serde", serde(rename_all = "lowercase"))]
Expand All @@ -20,7 +23,7 @@ impl std::fmt::Display for Network {
Self::Sepolia => write!(f, "sepolia"),
Self::Goerli => write!(f, "goerli"),
Self::Holesky => write!(f, "holesky"),
Self::Custom(name) => write!(f, "{name}"),
Self::Custom(config_file) => write!(f, "custom network with config at `{config_file}`"),
}
}
}
Expand Down

0 comments on commit 742607d

Please sign in to comment.