pub fn assert_key(
info: &AccountInfo<'_>,
expected: &Pubkey,
) -> Result<(), ProgramError>Expand description
Asserts that an account’s key matches the expected pubkey.
pub fn assert_key(
info: &AccountInfo<'_>,
expected: &Pubkey,
) -> Result<(), ProgramError>Asserts that an account’s key matches the expected pubkey.