I want to know the answer to the following question:
Charleston was the state capital of South Carolina until what year?
All the background I'm provided with is that "It was more easily grown in the upland areas, and cotton quickly became South Carolina's major export commodity.". Is that enough to answer the question?