ON REHEARING.
SULLIVAN, C. J.A petition for rehearing was granted. The cause was first submitted to this court without oral argument, but on this hearing the case was fully presented by oral *93argument and printed briefs. A number of additional authorities were cited. As the facts of the case are fully stated in the former opinion, it is not necessary to repeat them here. The appeal is from the order and judgment of the district court sustaining a demurrer to the complaint.
This is a suit in equity for the cancellation of certain county warrants issued by the plaintiff county to the defendant the Bullen Bridge Company. Respondents contend that this action ■cannot be maintained, for the reason that the plaintiff has a plain, speedy, and adequate remedy at law, and for this reason the decision of the trial court on the demurrer should be sustained; while the appellant, the county of Ada, contends that the action of the court below in sustaining the demurrer to the complaint should be reversed. The appellant contends that sufficient facts are stated in the complaint to authorize the interposition of a court of equity, and to warrant such court to grant the cancellation of said county warrants; and cites section 921 of Dillon on Municipal .Corporations. In that section the author lays down the following rule: “A municipal corporation may, in its own name, bring suit, in proper cases, to be relieved against illegal, unauthorized, or fraudulent acts on the part of its officers.” We do not dispute this principle but indorse it. The distinguished author says such suit may be brought in a “proper ■case.” He does not intimate that a bill in equity would lie to •cancel a written contract where the party has an adequate remedy at law, where such remedy would be adequate, certain, and complete. If there is no legal remedy, adequate, certain, and ■complete, a municipal corporation may maintain a bill in equity to cancel warrants illegally issued. The appellant cites. Andrews v. Pratt, 44 Cal. 309, as a case directly in point sustaining its contention. The facts in that case were very different from the facts in the case at bar. In that case the plaintiff was a resident taxpayer of Placer county, and three of the defendants composed the board of supervisors of said county, and the fourth •one was the treasurer thereof. The board of supervisors were authorized by law to sell certain railroad stock owned by the county, which they did, and for services in negotiating and making said sale they each individually filed a claim against the countv for $1,600 for their services therein, which claims were *94allowed by said claimants acting as a board, and warrants issued to each of said officers for tbe sum of $1,500. By tbe laws of that state tbe compensation and fees of members of tbe board of supervisors were fixed. Tbe law also provided that no other fees or compensation than that provided by statute should be allowed to the members of such board. Under the law, the members of said board were not entitled to compensation for the sale of the stock referred to. The warrants sought to be canceled remained in their hands at the time of the commencement of said suit; while in the case at bar the record shows that the warrants referred to in the complaint are not in the hands of the parties to whom they were issued, but have passed into other hands, or at least third parties have acquired interests in them; that the county has received a bridge costing many thousand dollars, and other improvements, for which said warrants were issued. No tender of said bridge and improvements is made by the appellant to respondents. This statement of facts is sufficient to show that the case cited is a very different one from the ease at bar; and, further, no offer is made by the county to place defendants in statu quo. This was not considered on the former hearing of this ease. Equity would not permit the county to retain the bridge and other improvements, and have said warrants canceled. One of the fundamental principles of equity-is, “He who asks equity must do equity,” even in favor of one who has entered into and executed a voidable contract. (City of Oakland v. Carpenter, 21 Cal. 642.) However, the decision on the case at bar- is not based upon the ground that the county failed to offer to do equity, but on the ground that plaintiff has an adequate remedy at law. Other cases are cited by the appellant. Those were held to be proper eases for the intervention of a court of equity, while under oar statute, in the case at bar, the county has an adequate remedy at law. Conceding that the county treasurer would not be liable in case he should pay said warrants before the final determination of their legality or illegality, in an action at law, no doubt, the court, upon a proper showing, would grant an order restraining the treasurer from paying them until final judgment was obtained in regard to their legality. The county warrants which are sought to be canceled by this action are not negotiable under the law-merchant. The power to *95cancel a written instrument is a purely equitable remedy, and is a remedy that will not be granted, or is a power that will not be exercised, unless there is some special ground for it. The warrants, being non-negotiable, cannot pass into the hands of bona fide holders, so as to devest the county of any defense it may have against their payment. In section 914 of 2 Pomerojr,s Equity Jurisprudence, the principle involved in this case is stated as follows: “The doctrine is settled that the exclusive jurisdiction to grant purely equitable remedies, such as cancellation, will not be exercised, and the concurrent jurisdiction to grant pecuniary recoveries does not exist, in any ease where the legal remedy, either affirmative or defensive, which the defrauded party might obtain, would be adequate, certain, and complete/’ The doctrine there enunciated is not changed or modified by the laws of this state. The rule is the same in states where the code practice exists as in the states where separate courts of chancery are maintained. In the state of New York, where the code practice obtains, it was held in Insurance Co. v. Reals, 79 N. Y. 202, as follows: “The ease presented furnishes no ground for the interference of a court of equity. Such a court will not interfere to decree the cancellation of a written instrument unless some special circumstance exists establishing the necessity of a resort to equity to prevent an injury which might he irreparable, and which equity alone is able to avert. That a defense exists is insufficient. Nor is it enough that tho evidence be lost.” In Allerton v. Belden, 49 N. Y. 373, the court says: “The right to the relief exists only where, from the form of the security the defense cannot be made available at law, or where the instrument sought to be avoided is a cloud upon the title to land, or some other necessity for the interposition of a court of equity is shown.” In Town of Venice v. Woodruff, 62 N. Y. 462, 20 Am. Rep. 495, it is said: “A court of equity will not interfere to decree the cancellation of a written instrument unless some special circumstance exists establishing the necessity of a resort to equity to prevent an injury which might be irreparable, and which equity alone is competent to avert.” To the same effect are Town of Grand Chute v. Winegar, 15 Wall. 373; Edelman v. Latshaw, 159 Pa. St. 644, 28 Atl. 475. Where the invalidity of an instrument appears on its face, or where *96there is no danger of the instrument passing into the hands of an innocent holder, and where there is an adequate remedy at law, a court of equity will not take jurisdiction, and decree the cancellation of such instrument. (Story’s Equity Jurisprudence, sec. 700a; Delaine Co. v. James, 94 U. S. 214.) In Ada Co. v. Gess, 4 Idaho, 611, 43 Pac. 71 (which was an application for an injunction to restrain the payment of certain county warrants), the court holds that there was a complete and adequate remedy at law, and therefore equity could not be invoked. (See, also, Morgan v. Board, 4 Idaho, 418, 39 Pac. 1118; Rogers v. Hayes, 3 Idaho, 597, 32 Pac. 259; Clark v. Dayton, 6 Neb. 192.) In Farming Village Corp. v. Sandy River Nat. Bank, 85 Me. 46, 26 Atl. 965, the doctrine applicable to the case at bar is clearly stated. That was a bill in equity, praying for a perpetual injunction against the defendants enjoining them from negotiating or delivering certain bonds issued by said corporation. It is there held that a court of equity, in a proper case, has full power to order the cancellation of bonds or other written instruments; but that it is a power which the court, in its discretion, will exercise with care, and only in accordance with what the court believes to be proper and right under the circumstances; and that such power will not be exercised where the legal remedy, either affirmative or defensive, would be adequate, certain, and complete. To the same effect is Delaine Co. v. James, 94 U. S. 207, and Town of Glastenbury v. McDonald, 44 Vt. 450. In this case the county need not wait for the defendants to sue on said warrants, but it can force defendants to do so by virtue of the provisions of section 4928, of the Revised Statutes, which is as follows: “An action may be brought by one person against another for the purpose of determining an adverse claim which the latter makes against the former for money or property upon an alleged obligation.” This statute provides a complete and adequate remedy against the delay of defendants in bringing suit upon said warrants, and may be invoked on behalf of the county. In such suit any legal defense which the county has against the payment of said warrants may be interposed. Section 4928, supra, is the same as section 1050 of the Code of Civil Procedure of California, and is a transcript of section 527 of the old Practice Act of California. In Lewis v. *97Tobias, 10 Cal. 578, which was a suit in equity to compel the surrender and cancellation of a promissory note, tlie court held that said section afforded an adequate remedy. The court says: “If the doctrine contended for by respondent be at all debatable ■elsewhere, it is more clear here, for we have a statute whereby a party may force his adversary to wage his claims, or else forever abandon them.” Again, the court says: “While, if we recognize the principle invoked by the respondent, we must necessarily admit that in every case in which the payor of note, or bond, or other money security, has a defense to it, though purely legal, we must admit him, at his pleasure, into a court of equity, ■deny the holder a trial by jury, and permit the payor to take the place of the actor in a proceeding to test his liability. We see no necessity for such a principle and we think it would produce only confusion, and that it starts with a denial of a positive right of the holder. If the holder unreasonably delays to sue, the payor may force him to do so under the statute.” The case of Lewis v. Tobias is affirmed in Smith v. Sparrow, 13 Cal. 596, and in Shain v. Belvin, 79 Cal. 262, 21 Pac. 747. The action provided for by said section 4928 is an action at law, and triable, in the ordinary course of law, and by jury, unless waived. (Taylor v. Ford, 92 Cal. 419, 28 Pac. 441.) If the county has a legal defense to the payment of said warrants, by permitting it to come into a court of equity the defendants would be deprived of a trial by jury. The defendants would thus be deprived of a positive right which the law gives them. The former decision in this case is reversed, and the order of the trial court in sustaining the demurrer and the judgment entered therein are sustained. Costs of this appeal awarded to respondents.
Huston and Quarles,’JJ., concur.