Function validate_mint

Source
pub fn validate_mint(mint_info: &AccountInfo<'_>) -> Result<Option<RoyaltyInfo>>
Expand description

Validates a “vanilla” Token 2022 non-fungible mint account.

For non-fungibles assets, the validation consists of checking that the mint:

  • has no more than 1 supply
  • has 0 decimals
  • has no mint authority

It also supports Libreplex royalty enforcement by looking for the metadata extension to retrieve the seller fee basis points and creators.