All taxes imposed under sections 298.01 and 298.015 must be paid into the state treasury and credited to the general fund.