mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: rename default chainspec parser (#11398)
This commit is contained in:
@ -71,11 +71,12 @@ pub fn parse_custom_chain_spec(s: &str) -> eyre::Result<ChainSpec, eyre::Error>
|
||||
Ok(genesis.into())
|
||||
}
|
||||
|
||||
/// Default chain specification parser.
|
||||
#[derive(Debug, Clone, Default)]
|
||||
pub struct DefaultChainSpecParser;
|
||||
/// A chain specification parser for ethereum chains.
|
||||
#[derive(Debug, Copy, Clone, Default)]
|
||||
#[non_exhaustive]
|
||||
pub struct EthereumChainSpecParser;
|
||||
|
||||
impl ChainSpecParser for DefaultChainSpecParser {
|
||||
impl ChainSpecParser for EthereumChainSpecParser {
|
||||
type ChainSpec = ChainSpec;
|
||||
|
||||
const SUPPORTED_CHAINS: &'static [&'static str] = SUPPORTED_CHAINS;
|
||||
|
||||
Reference in New Issue
Block a user