Fixing some bugs on clap and processing logic (#299)

This commit is contained in:
Ali Behjati 2022-09-22 15:04:00 +02:00 committed by GitHub
parent 77083cf760
commit bc48a31576
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -119,7 +119,7 @@ pub enum Action {
is_active: Option<bool>,
#[clap(long = "ops-owner")]
ops_owner_addr: Option<Pubkey>,
#[clap(long = "remove-ops-owner", conflicts_with = "ops_owner_addr")]
#[clap(long = "remove-ops-owner", conflicts_with = "ops-owner-addr")]
remove_ops_owner: bool,
},
#[clap(

View File

@ -136,8 +136,10 @@ async fn main() -> Result<(), ErrBox> {
let new_ops_owner = if remove_ops_owner {
None
} else if let Some(given_ops_owner) = ops_owner_addr {
Some(given_ops_owner)
} else {
ops_owner_addr
old_config.ops_owner
};
let tx = gen_set_config_tx(