Skip to content

Commit

Permalink
refactor: update reward program authority in initialize_pool.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
keyvankhademi committed Sep 4, 2024
1 parent 3b13b4b commit 44aea94
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions staking/integration-tests/tests/initialize_pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,14 +152,14 @@ fn test_update_reward_program_authority() {
assert!(pool_config.reward_program_authority == new_reward_program_authority);

// Trying to update the reward program authority without the correct authority should fail
let wrong_authority = Keypair::new();
let new_reward_program_authority2 = Keypair::new();

assert_anchor_program_error!(
update_reward_program_authority(
&mut svm,
&payer,
&wrong_authority,
new_reward_program_authority
&reward_program_authority,
new_reward_program_authority2.pubkey(),
),
IntegrityPoolError::InvalidRewardProgramAuthority,
0
Expand Down

0 comments on commit 44aea94

Please sign in to comment.