From dd514f3e2b362557e949288297e7ed36f65f02c0 Mon Sep 17 00:00:00 2001 From: hannydevelop Date: Wed, 6 Apr 2022 11:36:31 +0000 Subject: [PATCH] improved ux for deploy command --- orchestrator/gorc/src/commands/deploy/erc20.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/orchestrator/gorc/src/commands/deploy/erc20.rs b/orchestrator/gorc/src/commands/deploy/erc20.rs index 760e2f50a..26616073f 100644 --- a/orchestrator/gorc/src/commands/deploy/erc20.rs +++ b/orchestrator/gorc/src/commands/deploy/erc20.rs @@ -15,11 +15,13 @@ use tokio::time::sleep as delay_for; /// Deploy Erc20 #[derive(Command, Debug, Parser)] pub struct Erc20 { - args: Vec, - + /// Erc20 token denom. + #[clap(short, long)] + denom: String, + /// Ethereum ID representing a Keystore entry. #[clap(short, long)] ethereum_key: String, - + /// Ethereum gas multiplier, default is 1. #[clap(short, long, default_value_t = 1.0)] gas_multiplier: f64, } @@ -38,7 +40,7 @@ impl Runnable for Erc20 { impl Erc20 { async fn deploy(&self) { - let denom = self.args.get(0).expect("denom is required"); + let denom = self.denom.clone(); let config = APP.config();