Skip to content

Commit

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

This reverts commit b32ab74.
  • Loading branch information
joncinque authored Apr 4, 2024
1 parent 3625504 commit 6ab7e65
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 6ab7e65

Please sign in to comment.