make sysvar creation a bit more foolproof (#6294)

This commit is contained in:
Rob Walker
2019-10-09 23:22:33 -07:00
committed by GitHub
parent 1f345ce2d9
commit e58e48e919
8 changed files with 29 additions and 8 deletions

View File

@@ -14,7 +14,7 @@ const ID: [u8; 32] = [
30, 63, 80, 135, 25, 168, 5, 0, 0, 0,
];
crate::solana_name_id!(ID, "SysvarEpochSchedu1e111111111111111111111111");
crate::solana_sysvar_id!(ID, "SysvarEpochSchedu1e111111111111111111111111");
impl EpochSchedule {
pub fn deserialize(account: &Account) -> Result<Self, bincode::Error> {