Given that it adds cost, and that cost differential could deny someone the ability to own a firearm... yes, definitely unconstitutional.
This is the same as the government regulating the type of speech allowed under the first amendment. Mandating these types of restriction is a clear second amendment infringement and you’ll get the same situation as in Connecticut many times over.