File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
solana/pyth2wormhole/client/src Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ pub enum Action {
119
119
is_active : Option < bool > ,
120
120
#[ clap( long = "ops-owner" ) ]
121
121
ops_owner_addr : Option < Pubkey > ,
122
- #[ clap( long = "remove-ops-owner" , conflicts_with = "ops_owner_addr " ) ]
122
+ #[ clap( long = "remove-ops-owner" , conflicts_with = "ops-owner-addr " ) ]
123
123
remove_ops_owner : bool ,
124
124
} ,
125
125
#[ clap(
Original file line number Diff line number Diff line change @@ -136,8 +136,10 @@ async fn main() -> Result<(), ErrBox> {
136
136
137
137
let new_ops_owner = if remove_ops_owner {
138
138
None
139
+ } else if let Some ( given_ops_owner) = ops_owner_addr {
140
+ Some ( given_ops_owner)
139
141
} else {
140
- ops_owner_addr
142
+ old_config . ops_owner
141
143
} ;
142
144
143
145
let tx = gen_set_config_tx (
You can’t perform that action at this time.
0 commit comments