From b8cc6fa12cb07abe012d9cac1e9b6eba08623915 Mon Sep 17 00:00:00 2001 From: Jon Cinque Date: Tue, 12 Oct 2021 00:04:35 -0400 Subject: [PATCH] stake-pool-cli: Fix funding authority flag name (#2500) --- stake-pool/cli/Cargo.toml | 2 +- stake-pool/cli/src/main.rs | 13 ++++--------- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/stake-pool/cli/Cargo.toml b/stake-pool/cli/Cargo.toml index 3731b28930c..3406d10a1b2 100644 --- a/stake-pool/cli/Cargo.toml +++ b/stake-pool/cli/Cargo.toml @@ -6,7 +6,7 @@ homepage = "https://spl.solana.com/stake-pool" license = "Apache-2.0" name = "spl-stake-pool-cli" repository = "https://github.com/solana-labs/solana-program-library" -version = "0.6.1" +version = "0.6.2" [dependencies] borsh = "0.9" diff --git a/stake-pool/cli/src/main.rs b/stake-pool/cli/src/main.rs index d572c7c5fe2..292a6d71c28 100644 --- a/stake-pool/cli/src/main.rs +++ b/stake-pool/cli/src/main.rs @@ -1493,7 +1493,7 @@ fn command_set_staker( fn command_set_funding_authority( config: &Config, stake_pool_address: &Pubkey, - new_sol_deposit_authority: Option, + new_authority: Option, funding_type: FundingType, ) -> CommandResult { let mut signers = vec![config.fee_payer.as_ref(), config.manager.as_ref()]; @@ -1504,7 +1504,7 @@ fn command_set_funding_authority( &spl_stake_pool::id(), stake_pool_address, &config.manager.pubkey(), - new_sol_deposit_authority.as_ref(), + new_authority.as_ref(), funding_type, )], &signers, @@ -2540,7 +2540,7 @@ fn main() { } ("set-funding-authority", Some(arg_matches)) => { let stake_pool_address = pubkey_of(arg_matches, "pool").unwrap(); - let new_stake_deposit_authority = pubkey_of(arg_matches, "new_stake_deposit_authority"); + let new_authority = pubkey_of(arg_matches, "new_authority"); let funding_type = match arg_matches.value_of("funding_type").unwrap() { "sol-deposit" => FundingType::SolDeposit, "stake-deposit" => FundingType::StakeDeposit, @@ -2548,12 +2548,7 @@ fn main() { _ => unreachable!(), }; let _unset = arg_matches.is_present("unset"); - command_set_funding_authority( - &config, - &stake_pool_address, - new_stake_deposit_authority, - funding_type, - ) + command_set_funding_authority(&config, &stake_pool_address, new_authority, funding_type) } ("set-fee", Some(arg_matches)) => { let stake_pool_address = pubkey_of(arg_matches, "pool").unwrap();