Add method id to SysbarId trait (#18604)

(cherry picked from commit 5cea25ac3e)
This commit is contained in:
Kirill Fomichev
2021-07-13 19:01:32 +03:00
committed by Michael Vines
parent 0fdaa1438e
commit e0e6e20e02
2 changed files with 13 additions and 0 deletions

View File

@@ -270,6 +270,9 @@ mod tests {
}
crate::declare_id!("TestSysvar111111111111111111111111111111111");
impl solana_program::sysvar::SysvarId for TestSysvar {
fn id() -> crate::pubkey::Pubkey {
id()
}
fn check_id(pubkey: &crate::pubkey::Pubkey) -> bool {
check_id(pubkey)
}