diff --git a/solana/pyth2wormhole/client/src/cli.rs b/solana/pyth2wormhole/client/src/cli.rs index 799d8db3..a5df4497 100644 --- a/solana/pyth2wormhole/client/src/cli.rs +++ b/solana/pyth2wormhole/client/src/cli.rs @@ -119,7 +119,7 @@ pub enum Action { is_active: Option, #[clap(long = "ops-owner")] ops_owner_addr: Option, - #[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( diff --git a/solana/pyth2wormhole/client/src/main.rs b/solana/pyth2wormhole/client/src/main.rs index c6388abd..0f3bb337 100644 --- a/solana/pyth2wormhole/client/src/main.rs +++ b/solana/pyth2wormhole/client/src/main.rs @@ -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(