Skip to main content

assert_key

Function assert_key 

Source
pub fn assert_key(
    info: &AccountInfo<'_>,
    expected: &Pubkey,
) -> Result<(), ProgramError>
Expand description

Asserts that an account’s key matches the expected pubkey.