spl_token_2022::extension::transfer_hook

Function get_program_id

Source
pub fn get_program_id<S: BaseState, BSE: BaseStateWithExtensions<S>>(
    state: &BSE,
) -> Option<Pubkey>
Expand description

Attempts to get the transfer hook program id from the TLV data, returning None if the extension is not found