pub fn set_account_type<S: BaseState>(
    input: &mut [u8]
) -> Result<(), ProgramError>
Expand description

If AccountType is uninitialized, set it to the BaseState’s ACCOUNT_TYPE; if AccountType is already set, check is set correctly for BaseState This method assumes that the base_data has already been packed with data of the desired type.