Skip to content

Commit

Permalink
pool becomes key again
Browse files Browse the repository at this point in the history
  • Loading branch information
guibescos committed Sep 17, 2024
1 parent b8c9c61 commit 15e1a65
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions staking/cli/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ pub enum Action {
#[clap(
long,
help = "Keypair pool data account",
parse(try_from_str = get_signer_from_path)
parse(try_from_str = get_keypair_from_file)
)]
pool_data_keypair: Box<dyn Signer>,
pool_data_keypair: Keypair,
#[clap(long, help = "Y parameter")]
y: u64,
#[clap(long, help = "Reward program authority parameter")]
Expand Down
2 changes: 1 addition & 1 deletion staking/cli/src/instructions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ pub fn advance(rpc_client: &RpcClient, payer: &dyn Signer, publisher_caps: Pubke
pub fn initialize_pool(
rpc_client: &RpcClient,
payer: &dyn Signer,
pool_data_keypair: &dyn Signer,
pool_data_keypair: &Keypair,
reward_program_authority: Pubkey,
y: u64,
slash_custody: Pubkey,
Expand Down
2 changes: 1 addition & 1 deletion staking/cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ fn main() {
initialize_pool(
&rpc_client,
keypair.as_ref(),
pool_data_keypair.as_ref(),
&pool_data_keypair,
reward_program_authority,
y,
slash_custody,
Expand Down

0 comments on commit 15e1a65

Please sign in to comment.