mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
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:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user