This is irrelevant, it matters what made it into the contract, i.e. Constitution.
The second amendment in full is: "A well regulated militia being necessary to the security of a free State, the right of the People to keep and bear arms shall not be infringed."
A well regulated militia is completely dropped from all modern court rulings. Guns can and should be regulated.