Skip to content

Commit 6a0b7c1

Browse files
committed
fix: pr feedback
1 parent e28b720 commit 6a0b7c1

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

program-libs/account-checks/src/account_info/pinocchio.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ impl AccountInfoTrait for pinocchio::account_info::AccountInfo {
5050
(pubkey, bump)
5151
}
5252
// Pinocchio does not support find_program_address outside of target_os solana.
53-
// That is annoying for rust unit tests.
5453
#[cfg(all(not(target_os = "solana"), feature = "solana"))]
5554
{
5655
let program_pubkey = solana_pubkey::Pubkey::from(*_program_id);
@@ -75,7 +74,6 @@ impl AccountInfoTrait for pinocchio::account_info::AccountInfo {
7574
.map_err(|_| AccountError::InvalidSeeds)
7675
}
7776
// Pinocchio does not support find_program_address outside of target_os solana.
78-
// That is annoying for rust unit tests.
7977
#[cfg(all(not(target_os = "solana"), feature = "solana"))]
8078
{
8179
let program_pubkey = solana_pubkey::Pubkey::from(*_program_id);

program-libs/account-checks/src/checks.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ pub fn check_discriminator<T: Discriminator>(bytes: &[u8]) -> Result<(), Account
9090
}
9191

9292
/// Checks that the account balance is greater or eqal to rent exemption.
93-
#[cfg(any(feature = "pinocchio", feature = "solana"))]
9493
pub fn check_account_balance_is_rent_exempt<A: AccountInfoTrait>(
9594
account_info: &A,
9695
expected_size: usize,

0 commit comments

Comments
 (0)