The U.S. Court of Appeals for the Fifth Circuit held Thursday that a federal law barring the sale of handguns to adults under 21 violates the Constitution under the U.S. Supreme Court’s history-and-tradition Second Amendment test.

The three-judge Fifth Circuit panel said the 1968 gun-control law is inconsistent with Founding-era firearm regulation, pointing to a 1792 act that required 18-year-old men to enroll in the militia and use their own weapons.