Skip to content

Commit

Permalink
move dev-context-util attr to module level for loader_utils
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoranYi committed Feb 14, 2024
1 parent d9deb23 commit a01bdbd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion programs/sbf/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ solana-ledger = { workspace = true }
solana-runtime = { workspace = true, features = ["dev-context-only-utils"] }
solana-sdk = { workspace = true, features = ["dev-context-only-utils"] }


[[bench]]
name = "bpf_loader"

Expand Down
3 changes: 1 addition & 2 deletions runtime/src/loader_utils.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![cfg(feature = "dev-context-only-utils")]
use {
crate::{bank::Bank, bank_client::BankClient, bank_forks::BankForks},
serde::Serialize,
Expand Down Expand Up @@ -212,7 +213,6 @@ pub fn load_upgradeable_program(
});
}

#[cfg(feature = "dev-context-only-utils")]
pub fn load_upgradeable_program_wrapper(
bank_client: &BankClient,
mint_keypair: &Keypair,
Expand All @@ -232,7 +232,6 @@ pub fn load_upgradeable_program_wrapper(
program_keypair.pubkey()
}

#[cfg(feature = "dev-context-only-utils")]
pub fn load_upgradeable_program_and_advance_slot(
bank_client: &mut BankClient,
bank_forks: &RwLock<BankForks>,
Expand Down

0 comments on commit a01bdbd

Please sign in to comment.