Skip to content

Commit

Permalink
[fix]: Fix clap panic on parsing relayer commands
Browse files Browse the repository at this point in the history
  • Loading branch information
batconjurer committed Sep 24, 2024
1 parent 760462b commit d44597f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions crates/apps_lib/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,8 @@ pub mod cmds {
impl Cmd for Namada {
fn add_sub(app: App) -> App {
app.subcommand(NamadaNode::def().display_order(1))
// .subcommand(NamadaRelayer::def().display_order(1))
.subcommand(NamadaClient::def().display_order(1))
.subcommand(NamadaWallet::def().display_order(1))
// .subcommand(EthBridgePool::def().display_order(2))
.subcommand(Ledger::def().display_order(2))
.subcommand(TxCustom::def().display_order(2))
.subcommand(TxTransparentTransfer::def().display_order(2))
Expand All @@ -96,9 +94,6 @@ pub mod cmds {
fn parse(matches: &ArgMatches) -> Option<Self> {
let node = SubCmd::parse(matches).map(Self::Node);
let client = SubCmd::parse(matches).map(Self::Client);
let relayer = SubCmd::parse(matches).map(Self::Relayer);
let eth_bridge_pool =
SubCmd::parse(matches).map(Self::EthBridgePool);
let wallet = SubCmd::parse(matches).map(Self::Wallet);
let ledger = SubCmd::parse(matches).map(Self::Ledger);
let tx_custom = SubCmd::parse(matches).map(Self::TxCustom);
Expand All @@ -121,8 +116,6 @@ pub mod cmds {
let tx_reveal_pk = SubCmd::parse(matches).map(Self::TxRevealPk);
let complete = SubCmd::parse(matches).map(Self::Complete);
node.or(client)
.or(relayer)
.or(eth_bridge_pool)
.or(wallet)
.or(ledger)
.or(tx_custom)
Expand Down

0 comments on commit d44597f

Please sign in to comment.