Skip to content

Commit

Permalink
improved ux for deploy command
Browse files Browse the repository at this point in the history
  • Loading branch information
hannydevelop committed Apr 6, 2022
1 parent 1264513 commit dd514f3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions orchestrator/gorc/src/commands/deploy/erc20.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ use tokio::time::sleep as delay_for;
/// Deploy Erc20
#[derive(Command, Debug, Parser)]
pub struct Erc20 {
args: Vec<String>,

/// 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,
}
Expand All @@ -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();

Expand Down

0 comments on commit dd514f3

Please sign in to comment.