Add method id to SysbarId trait (#18604)

This commit is contained in:
Kirill Fomichev
2021-07-13 19:01:32 +03:00
committed by GitHub
parent 6829d210d4
commit 5cea25ac3e
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)
}