. . "It amended Idaho Code section 31-2604(2), to provide that it was a duty of a prosecuting attorney, ???when a written contract to do so exists between the prosecuting attorney and a city, to prosecute violations for state misdemeanors and infractions and violations of county or city ordinances committed within the municipal limits of that city when the arresting or charging officer is a city employ" . .