pub fn is_precompile<F>(program_id: &Pubkey, is_enabled: F) -> bool
where
    F: Fn(&Pubkey) -> bool,
{
    PRECOMPILES
        .iter()
        .any(|precompile| precompile.check_id(program_id, |feature_id| is_enabled(feature_id)))
}
/// Check if a program is a precompiled program
Check if a program is a precompiled program
Check if a program is a precompiled program
pub fn is_precompile<F>(program_id: &Pubkey, is_enabled: F) -> bool
where
    F: Fn(&Pubkey) -> bool,
{
    PRECOMPILES
        .iter()
        .any(|precompile| precompile.check_id(program_id, |feature_id| is_enabled(feature_id)))
}
pub fn is_precompile < F > ( program_id : & Pubkey , is_enabled : F ) -> bool where F : Fn ( & Pubkey ) -> bool , { PRECOMPILES . iter ( ) . any ( | precompile | precompile . check_id ( program_id , | feature_id | is_enabled ( feature_id ) ) ) }
Check if a program is a precompiled program
Check if a program is a precompiled program
program_id
&Pubkey
is_enabled
F