The act of the legislature passed January 18th, 1854, provides that any person, wishing to procure a license to retail spirituous liquors, must give public notice for at least ten days, that, at the next term of the County Court he will apply for said license; must present’ to said court at said term a petition signed by a majority of the legal voters of the precinct in which the grocery is to he located, praying that said license be granted, and also present the receipt of the county treasurer for the sum of one hun*215dred dollars if the license is for one year, or in the same proportion for a shorter period.
Having complied with all these requirements, the applicant is entitled to a license; and, if the same be refused, has his remedy by a resort in proper manner to the appellate or revisory court.
The payment of the amount required by statute, is a condition precedent to his applying for a license, and is not a deposit in the hands of the county treasurer, which can be withdrawn at the pleasure of the applicant, but goes at once into the county treasury, and becomes a part of the general county funds; and cannot be distinguished from the other funds of the county, and can never become the foundation for an action for money had and received, either against the county or its treasurer. We are, therefore, of the opinion, that the court below erred in overruling the defendant’s demurrer to the complaint.
Judgment reversed.