Skip to content

Commit

Permalink
single-pool: Allow stake config to be anything in tests (#6543)
Browse files Browse the repository at this point in the history
  • Loading branch information
joncinque authored Apr 3, 2024
1 parent aab92cf commit b32ab74
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions single-pool/program/tests/accounts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,12 @@ 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 b32ab74

Please sign in to comment.