/// Asserts the given mint_info represents a valid SPL Token Mint account  which is initialized and belongs to spl_token program
Asserts the given mint_info represents a valid SPL Token Mint account  which is initialized and belongs to spl_token program
Asserts the given mint_info represents a valid SPL Token Mint account which is initialized and belongs to spl_token program
pub fn assert_is_valid_spl_token_mint(mint_info: &AccountInfo) -> Result<(), ProgramError> {
    if mint_info.data_is_empty() {
        return Err(GovernanceError::SplTokenMintNotInitialized.into());
    }
    if mint_info.owner != &spl_token::id() {
        return Err(GovernanceError::SplTokenMintWithInvalidOwner.into());
    }
    if mint_info.data_len() != Mint::LEN {
        return Err(GovernanceError::SplTokenInvalidMintAccountData.into());
    }
    Ok(())
}
pub fn assert_is_valid_spl_token_mint ( mint_info : & AccountInfo ) -> Result < ( ) , ProgramError > { if mint_info . data_is_empty ( ) { return Err ( GovernanceError :: SplTokenMintNotInitialized . into ( ) ) ; } if mint_info . owner != & spl_token :: id ( ) { return Err ( GovernanceError :: SplTokenMintWithInvalidOwner . into ( ) ) ; } if mint_info . data_len ( ) != Mint :: LEN { return Err ( GovernanceError :: SplTokenInvalidMintAccountData . into ( ) ) ; } Ok ( ( ) ) }
Asserts the given mint_info represents a valid SPL Token Mint account  which is initialized and belongs to spl_token program
Asserts the given mint_info represents a valid SPL Token Mint account which is initialized and belongs to spl_token program
mint_info
&AccountInfo