Bump all native programs up a level

Don't categorize programs by a single backend.
This commit is contained in:
Greg Fitzgerald
2019-03-02 20:31:57 -07:00
committed by Grimes
parent e1a1296b9b
commit 037fcf6b3d
51 changed files with 52 additions and 52 deletions

View File

@@ -0,0 +1,18 @@
pub mod vote_instruction;
pub mod vote_state;
pub mod vote_transaction;
use solana_sdk::pubkey::Pubkey;
const VOTE_PROGRAM_ID: [u8; 32] = [
132, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0,
];
pub fn check_id(program_id: &Pubkey) -> bool {
program_id.as_ref() == VOTE_PROGRAM_ID
}
pub fn id() -> Pubkey {
Pubkey::new(&VOTE_PROGRAM_ID)
}