It served as the capital of the North Carolina colonial government , then briefly as the state capital .
It served as the capital of the North Carolina colonial government and then briefly as the state capital until 1792 .