coral-xyz / anchor

⚓ Solana Sealevel Framework
https://anchor-lang.com
Apache License 2.0
3.59k stars 1.32k forks source link

Support `None` in mint authority constraints #3066

Open Henry-E opened 3 months ago

Henry-E commented 3 months ago

mint:freeze_authority and mint:authority should be able to support None. Maybe they do already? But it's getting to be more common that people want to check that a mint has these option set to None.

acheroncrypto commented 3 months ago

Yeah, the mint constraint parser expects the expression to be an account name, so None support would have to be implemented separately. I support this feature.