spl_token_2022::generic_token_account

Function is_initialized_account

Source
pub fn is_initialized_account(account_data: &[u8]) -> bool
Expand description

Check if the account data buffer represents an initialized account. This is checking the state (AccountState) field of an Account object.