Program_ids were overlapping (#1626)

Program_ids were overlapping
This commit is contained in:
jackcmay
2018-10-26 19:44:53 -07:00
committed by GitHub
parent 3488ea7d1c
commit be003970b7
8 changed files with 84 additions and 22 deletions

View File

@@ -17,7 +17,10 @@ pub enum StorageError {
InvalidUserData,
}
pub const STORAGE_PROGRAM_ID: [u8; 32] = [1u8; 32];
const STORAGE_PROGRAM_ID: [u8; 32] = [
130, 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,
];
impl StorageProgram {
pub fn check_id(program_id: &Pubkey) -> bool {