chore: Remove duplicate EthereumChainSpecParser in favor of existing EthChainSpecParser (#11412)

Co-authored-by: garwah <garwah@garwah>
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
garwah
2024-10-05 20:52:08 +10:00
committed by GitHub
parent a846cbdcee
commit 28750e5b0e
25 changed files with 85 additions and 189 deletions

View File

@ -176,13 +176,14 @@ where
#[cfg(test)]
mod test {
use crate::chainspec::OpChainSpecParser;
use clap::Parser;
use reth_cli_commands::NodeCommand;
use reth_cli_commands::{node::NoArgs, NodeCommand};
use reth_optimism_chainspec::OP_DEV;
#[test]
fn parse_dev() {
let cmd: NodeCommand = NodeCommand::parse_from(["op-reth", "--dev"]);
let cmd = NodeCommand::<OpChainSpecParser, NoArgs>::parse_from(["op-reth", "--dev"]);
let chain = OP_DEV.clone();
assert_eq!(cmd.chain.chain, chain.chain);
assert_eq!(cmd.chain.genesis_hash, chain.genesis_hash);