Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

single-pool: Allow stake config to be anything in tests #6543

Merged
merged 1 commit into from
Apr 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading