Skip to content

Commit

Permalink
Revert "single-pool: Allow stake config to be anything in tests (sola…
Browse files Browse the repository at this point in the history
…na-labs#6543)"

This reverts commit b32ab74.
  • Loading branch information
joncinque committed Apr 4, 2024
1 parent b32ab74 commit 3b6ef58
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions single-pool/program/tests/accounts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,6 @@ async fn fail_account_checks(test_mode: TestMode) {
if instruction_account.pubkey == accounts.alice.pubkey() {
continue;
}
// stake config address can also be arbitrary. Remove all usage of
// `stake::config` with the upgrade to 2.0
#[allow(deprecated)]
if instruction_account.pubkey == stake::config::id() {
continue;
}

let prev_pubkey = instruction_account.pubkey;
instruction_account.pubkey = Pubkey::new_unique();
Expand Down

0 comments on commit 3b6ef58

Please sign in to comment.