If a general verdict is rendered against the defendant, or a special verdict is given, the defendant must be remanded, if in custody, or, if the defendant is at large on bail, may be committed to the proper officer of the county to await the judgment of the court upon the verdict. When committed, the defendant's bail is exonerated, or if money is deposited instead of bail, it must be refunded in accordance with section 29-08-28.
N.D.C.C. § 29-22-31