mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: add ChainSpec::from_genesis (#13601)
This commit is contained in:
@ -223,6 +223,11 @@ impl Default for ChainSpec {
|
||||
}
|
||||
|
||||
impl ChainSpec {
|
||||
/// Converts the given [`Genesis`] into a [`ChainSpec`].
|
||||
pub fn from_genesis(genesis: Genesis) -> Self {
|
||||
genesis.into()
|
||||
}
|
||||
|
||||
/// Get information about the chain itself
|
||||
pub const fn chain(&self) -> Chain {
|
||||
self.chain
|
||||
|
||||
Reference in New Issue
Block a user