From 3b6ef5835a1a66f6b2183eba6dfd65537231ddbb Mon Sep 17 00:00:00 2001 From: Jon C Date: Thu, 4 Apr 2024 02:14:09 +0200 Subject: [PATCH] Revert "single-pool: Allow stake config to be anything in tests (#6543)" This reverts commit b32ab740bf536e3867186ec11700c1be355f16f9. --- single-pool/program/tests/accounts.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/single-pool/program/tests/accounts.rs b/single-pool/program/tests/accounts.rs index 4caad94e211..d6276be2639 100644 --- a/single-pool/program/tests/accounts.rs +++ b/single-pool/program/tests/accounts.rs @@ -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();