Folding of a single domain protein entering the endoplasmic reticulum precedes disulfide formation