Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit b32ab74

Browse files
authored
single-pool: Allow stake config to be anything in tests (#6543)
1 parent aab92cf commit b32ab74

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

single-pool/program/tests/accounts.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,12 @@ async fn fail_account_checks(test_mode: TestMode) {
157157
if instruction_account.pubkey == accounts.alice.pubkey() {
158158
continue;
159159
}
160+
// stake config address can also be arbitrary. Remove all usage of
161+
// `stake::config` with the upgrade to 2.0
162+
#[allow(deprecated)]
163+
if instruction_account.pubkey == stake::config::id() {
164+
continue;
165+
}
160166

161167
let prev_pubkey = instruction_account.pubkey;
162168
instruction_account.pubkey = Pubkey::new_unique();

0 commit comments

Comments
 (0)