Don't depend on solana_native_loader for IDs in the SDK

This commit is contained in:
Greg Fitzgerald
2019-02-07 09:03:40 -07:00
committed by Grimes
parent 83b40e4f30
commit d1945c29d7
5 changed files with 28 additions and 28 deletions

View File

@ -7,3 +7,7 @@ pub const NATIVE_LOADER_PROGRAM_ID: [u8; 32] = [
pub fn id() -> Pubkey {
Pubkey::new(&NATIVE_LOADER_PROGRAM_ID)
}
pub fn check_id(program_id: &Pubkey) -> bool {
program_id.as_ref() == NATIVE_LOADER_PROGRAM_ID
}