pub fn check_transfer_hook_program(
mint_data: &[u8],
expected_program_id: &[u8; 32],
) -> Result<(), ProgramError>Expand description
Assert that the mint has a transfer-hook extension and that it
invokes the expected program. Pairs with read_transfer_hook when
the program’s business logic depends on a specific hook binding.
Returns Err(InvalidAccountData) if the extension is missing,
malformed, or binds a different program than expected_program_id.