Both were zapped by the 14th Amendment, which was passed in part to counter laws restricting freedmen from owning guns granted, the Supremes almost immediately judicially nullified it.
The recent McDonald decision zapping the Chicago and some of it's suburbs bans on gun ownership made that explicit SCOTUS writ ... where in an interesting wrinkle, the gun owner's advocate offered the Supremes a chance to reverse the prior nullification, which in part made their decision another beloved "compromise".
Having said that, the Constitution, including the amendments, primarily constrained the federal government. Remember that "freedom of religion" clause? There were at least a couple of states with an established church at the time. The ability for municipalities to restrict the bearing of arms was not much questioned until the last 50 years or so.