In all criminal cases when the act of the Legislature under which the indictment or information is preferred is held to be unconstitutional, the district attorney may take an appeal in behalf of the state to the Supreme Court, which appeal shall be certified as other appeals in criminal cases, and the clerk must transmit, without delay, the record on appeal and the notice of appeal to the Supreme Court.