Opinion by
Mr. Justice Moore.1. The questions presented relate to the alleged error of the court in sustaining the demurrer. It is contended that where a city is not vested by its charter with power to improve streets and pay the expense thereof out of the general fund, it cannot be held liable on account of a breach *242of duty on the part of its officers in a case where the contractor agrees to look for his compensation to the fund to be raised by assessing the property benefited by such improvement, unless the city can reimburse itself from such assessment. This question was fully discussed by Lord, C. J., in the case of the Commercial National Bank v. Portland, 24 Or. 188, 33 Pac. 532, and the reason upon which the decision there rests is so potent that it needs no further elucidation here.
2. It is further contended that, there being a prior recovery of a part of the contract price of the improvement, such recovery is a bar to this action. A chose in action, by the ancient common law, could not be assigned, except by or to the king; but courts of equity modified this rule and protected the assignee of a chose in action as much as the law protected a chose in possession, and for that purpose considered the asignee of a chose in action the trustee of and authorized to use the name of the assignor to recover possession: 2 Blackstone's Commentaries, 442. This equitable modification of the ancient common law rule was an outgrowth of a commercial era, made necessary to adapt it to the condition of a trading people; and the legislative assemblies of most of the states of the Union, in order to keep pace with the growth and expansion of business methods, have enacted laws authorizing the asignee of a chose in action to prosecute the claim in courts of law in his own name: National Exchange Bank v. McLoon, 73 Me. 498, 40 Am. Rep. 388. In our own state, Hill’s Code, § 27, provides that every action shall be prosecuted in the name of the real party in interest. Courts of equity have in modern times further modified the rule first adopted, and now enforce partial assignments of choses in action, upon the theory that the interests of all the parties can be determined in a single suit. The debtor, in cases of conflicting claims, if not in default, can bring *243the entire fund into court where a decree can be made awarding proper distribution, without the risk of having a judgment rendered against him for the costs and disbursements of the suit: National Exchange Bank v. McLoon, 73 Me. 498, 40 Am. Rep. 388; James v. City of Newton, 142 Mass. 366, 8 N. E. 122, 56 Am. Rep. 692. This, however, is not recognized in actions at law, when such partial assignments are made without the knowledge and consent of the debtor. The debtor’s liability usually depends upon an entire contract, and if the creditor could, without the debtor’s consent, split up his claim at all, and assign any portion of it, he could do so indefinitely, and thus subject the debtor to many actions involving great outlay in costs and disbursements, not contemplated by the contract, which was limited to a single liability upon an entire demand: Mandeville v. Welch, 5 Wheat. 277. It is well settled that a creditor cannot, without the knowledge and consent of the debtor, split up an entire demand into distinct parts, and maintain separate actions at law on each. In such a case a recovery in one action bars the others: Smith v. Jones, 15 Johns. 229; Willard v. Sperry, 16 Johns. 121; Larziou v. Pioche, 8 Cal. 536; Herriter v. Porter, 23 Cal. 385. If, however, the assignment of a part of a claim is made with the knowledge and consent of the debtor, the assignee may bring his action upon it without making other holders of the demand parties: Grain v. Aldrich, 38 Cal. 514, 99 Am. Dec. 423; National Exchange Bank v. McLoon, 73 Me. 498, 40 Am. Rep. 388. In such cases the rights of the plaintiff as assignee serve as the consideration for the new contract, which becomes the ground of the action. The action is on the defendant’s promise to the plaintiff, and not upon the assignment, or upon any right growing out of it: Getchell v. Maney, 69 Me. 442. The right to maintain an action based upon the debtor’s assent to a partial assignment of a demand rests upon the *244theory that the assignment of the property in the sum transferred to the assignee is a good consideration for the debtor’s promise to pay the assignee, and that by the promise the indebtedness to the assignor is pro tanto discharged: James v. City of Newton, 142 Mass. 366, 56 Am. Rep. 692.
3. But defendant’s counsel contend that a municipal corporation is not bound in any case to accept or recognize a partial assignment of a claim against it, and cites the case of Appeals of the City of Philadelphia, 86 Pa. St. 179. In that case it is conceded that an assignment of a part of a debt is valid in equity between individuals; but the court refused to apply the rule to a debt due from a municipal corporation, on the ground that the policy of the law is against permitting individuals by their private contracts to embarrass the principal officers of a municipality. In James v. City of Newton, 142 Mass. 366, 56 Am. Rep. 692, the Supreme Court of Massachusetts held that there was no ground for any such distinction in that commonwealth; nor can we see any just reason why the contract of a municipal corporation in accepting and agreeing to pay a part of a demand against it to the assignee of its creditor, should, in the absence of any statute to the contrary, be treated in a different manner from the contract of private individuals. The cause of action being upon the agreement of the city, and not upon the creditor’s order, it follows that the city would be liable unless prohibited from making such contracts by its charter.
4. In the case at bar the City of Portland executed warrants, of which the following is an example:—
No. 180. Portland, Or., October 27, 1887.
To the Treasurer of the City of Portland:
Pay to P. H. Schoulderman & Co., or order, three hun*245dred dollars out of the funds for improvement of Twelfth
Street. Order No. 5246. $300.
John Gates, Mayor.
Attest: W. H. Wood, auditor and clerk.
These warrants, amounting to one thousand one hundred dollars, were delivered to the payees named therein, and by them assigned to the plaintiff. The city by this means split up the demand of the contractors, and ordered the treasurer to pay to them or their order the amounts named in the several warrants. This was an acceptance and agreement on the part of the city to pay a part of the demand, and having voluntarily assumed the liability, there is no reason why it should now escape it upon the theory that the contract was entire.
5. It is also contended that at the time the contract for the improvement of Twelfth Street was entered into the limitation of the city’s indebtedness, under the charter, had been reached, which precluded the city from entering into any contract whereby its indebtedness might be increased. That part of section 149 of the city charter applicable to the limit of the city’s indebtedness is as follows: “Except as otherwise expressly provided or permitted by this act, the indebtedness of the City of Portland must never exceed in the aggregate one hundred thousand dollars. ” This provision of the charter prohibited the city from entering into any contract by which its indebtedness might be increased beyond that amount, and every person who contracts with a municipal corporation, whereby an indebtedness is created, must at his peril take notice of the financial condition of the city, and whether the proposed indebtedness is in excess of the prescribed limit: French v. Burlingame, 42 Iowa, 617; Buchanan v. Litchfield, 102 U. S. 278. It is now well settled, however, that, even though the limit of municipal indebtedness may have been *246reached, an appropriation of anticipated income does not create an indebtedness, and that a contra'ct which provides that the cost of any improvement shall be paid out of a fund expressly created therefor is valid, notwithstanding the provision of the charter as to the limit of the city’s indebtedness: Salem Water Company v. Salem, 5 Or. 29; Koppikus v. Commissioners. 16 Cal. 248; People v. Pacheco, 27 Cal. 175; East St. Louis v. Flannigan, 26 Ill. App. 449; State v. McCauley, 15 Cal. 429; People v. Brooks, 16 Cal. 1; Grant v. Davenport, 36 Iowa, 396; People v. May, 9 Colo. 404, 12 Pac. 838; Springfield v. Edwards, 84 Ill. 626; Fuller v. Heath, 89 Ill. 296. The reason assigned by these decisions for the application of the foregoing rule is that materials furnished to and labor performed for a municipal corporation are exchanged for warrants, to be drawn upon the treasury and made payable out of a specific fund which has been created by an assessment or levy of taxes and appropriated to that purpose, under an agreement that the person furnishing the materials or performing the labor will rely upon the specific fund only for payment, and that the corporation shall incur no liability whatever. The contract in the case at bar contained a stipulation that the contractors should look for payment only to the fund to be raised by an assessment of the property benefited, and that they would not require the city by any legal process or otherwise to pay for the same out of any other fund; and when the improvement under the contract was completed warrants were drawn upon the treasury in favor of the contractors and made payable out of said fund.
“It is believed,” says Seevers, J., in Burlington Water Company v. Woodward, 49 Iowa, 58, “the constitution applies, not only to a present indebtedness, but also to such as is payable on a contingency at some future day, or which depends on some contingency before a liability is created. But it must appear such contingency is sure to take place *247irrespective of any action taken or option exercised by the city in the future. That is, if a present indebtedness is incurred or obligation is assumed, which, without further action on the part of the city, has the effect to create an indebtedness at some future day, such is within the inhibition of the constitution. But, if the fact of indebtedness depends upon some act of the city, or upon its volition to be exercised or determined at some future day, then no present indebtedness is incurred, and none will be until the period arrives, and the required act or option is exercised, and from that time only can it be said there exists an indebtedness.” So in People v. Pacheco, 27 Cal. 218, Sawyer, J., in- speaking of the debts of a municipality when made payable out of a specific fund said: “True, a portion of the money provided may be stolen, or destroyed, or by reason of some unlooked for accident may not be collected or on hand when needed; and in such case a debt or liability might ultimately accrue from this cause to the extent of the deficit thus accidentally arising. But no debt can result till the contingency arises, and the validity of the debt can only be affected to the extent of such accidental deficit.” Prom these decisions it would appear that no debt was created until the contingency arose, and, as the contract provided that the cost of the improvement should be paid out of the special fund, the city incurred no indebtedness until it failed to collect the fund within a reasonable time, and hence its authority to enter into the contract was not affected by the charter prohibition.
6. It is conceded that a municipal corporation cannot escape liabilities which are cast upon it by operation of law, under a plea that its indebtedness has reached the legal limit, (People v. May, 9 Colo. 404, 12 Pac. 836,) but it is contended that such liability results from actions ex delicto only and that this action is ex contractu. The action is to recover damages resulting from a breach of the city’s *248obligation, and neglect of duty in assessing and collecting the necessary fund within a reasonable time to defray the cost of the street improvement; and, in such cases, the right of recovery is not upon the contract, which has been fully performed, but upon facts and circumstances independent of the contract: 1 Dillon on Municipal Corporations, § 444. Wrong and damages constitute torts, and one may become a wrongdoer by neglecting to do something which he ought to do, whereby another suffers an injury: 1 Chitty on Pleading, 131; Cooley on Torts, 60. Unintentional wrongs consist in neglecting to perform some duty which the party has assumed by contract, or which the law has imposed by reason of some official position: Cooley on Torts, 140. “Where there is an express promise, and a legal obligation results from it, then the plaintiff’s cause of action is most accurately described as assumpsit, in which the promise is stated as the gist of the action. But where, from a given state of facts, the law raises a legal obligation to do a particular act, and there is a breach of that obligation, and a consequential damage, there, although assumpsit may be maintainable upon a promise implied by law to do the act, still an action on the case, founded in tort, is the more proper form of action, in which the plaintiff in his declaration states the facts out of which the legal obligation arises, the obligation itself, the breach of it-, and damage resulting from that breach”: 1 Chitty on Pleading, 135. The law imposes an obligation upon the municipal corporation, when it orders an improvement of the streets, to put the necessary machinery in motion, and to prosecute in good faith and with reasonable diligence the means afforded to it, under its charter, to raise and collect the funds by an assessment of the property affected by the improvement, in order to redeem its obligations (Commercial National Bank v. Portland, 24 Or. 188, 41 Am. St. Rep. 854, 33 Pac. 532, *24944 Am. and Eng. Corp. Cas. 486); and a failure on the part of the city to comply with any requirement of the charter by which the funds may be realized would subject it to a general liability: North Pacific Lumber Company v. East Portland, 14 Or. 6, 12 Pac. 4. It will thus be seen that the law in such cases raises a legal obligation upon the part of the city to assess and collect the fund within a reasonable time, which it has failed to do, thereby causing the damage of which the plaintiff complains; and, although the plaintiff might have availed himself of some other form of action to enforce his demand, he was nevertheless entitled to bring his action as he has done for damages resulting from the neglect of the city to perform its legal obligation. In City of Chicago v. Sexton, 115 Ill. 230, 2 N. E. 263, it was held that a municipal corporation was responsible for the want of fidelity or negligence of those who are authorized to act for it. Scholfield, J., in that case said: ‘ ‘ There is nothing new in thus holding a municipality responsible for the want of fidelity of those who act for it. Suits of that kind are of daily occurrence. The liability thus imposed is not within the constitutional and statutory limitations in regard to the creation of indebtedness.” It follows that the court committed no error in sustaining the demurrer to the several defenses, and hence the judgment is affirmed. Affirmed.