By the Court,
Leonard, J.:This is a suit to enforce a vendor’s lien upon a certain quartz mill and mill-site. The Poe Company, a corporation, and defendant, Briggs, demurred separately to the complaint. Both demurrers were sustained, and as to defendant, Briggs, the suit was dismissed. ' Plaintiff was granted leave to amend his complaint as to the Poe Company, but refusing to do so, the suit was dismissed as to that company also. If we mistake not, a consideration of one of the many points made will prove decisive of the appeal. From the complaint we gather the following facts:
On the sixth day of August, 1873, the owners of the Consolidated Poe Mining Company, then unincorporated, entered into a written contract with plaintiff, whereby it was agreed that the latter should build a quartz mill, at an estimated cost of ten thousand dollars, for the purpose of working the ores of the company’s mines, the mill, when completed, to be the property of plaintiff and the members of the Poe Company. Subsequently, the Consolidated *447Poe Mining Company was incorporated under the same name, with plaintiff’s consent. Plaintiff built the mill, and, after the incorporation, it was accepted by the proper officers of the company. Plaintiff was paid the estimated cost, and by an instrument, under seal, called therein a “deed and act of settlement between the parties,” it was agreed, on the third day of December, 1873, that the mill had cost five thousand dollars more than the original estimate, and, in satisfaction of that amount, the following stipulation was inserted in, and made a part of, the conveyance from plaintiff to the Poe Company, to wit:
“ Said first party (Poe Company) hereby agrees and covenants that out of the first proceeds of crushing and reducing ores of gold and silver in said mill, from its said mine, after the payment of the expenses of working its said mill and mine, it will pay to the second party (plaintiff), his heirs or assigns, the sum of two thousand five hundred and seventy-five dollars, in United States gold coin, with interest thereon until the payment of such interest and principal of the note of -per centum per month from date of these presents; but'such sum of two thousand five hundred and seventy-five dollars shall not be a debt otherwise collectible of the first party, until the proceeds of its mill and mine, over expenses, will pay such sum and interest, or part thereof, and then only to the extent of such part over such expenses. In consideration of the foregoing - covenants of the first party, and the covenants of the second party, in said written instrument, and the settlement herein made and contemplated, the second party hereby bargains, sells, grants, and conveys unto the first party all the right, title, interest, and estate to said stamp quartz mill and all the machinery thereof,” etc. Then follows a conveyance of plaintiff’s right of possession and occupation in and to the lands occupied by the parties for milling and mining purposes.
Thus it appears that so far as the extras are concerned (and this suit is to enforce a vendor’s lien for them only), the consideration of the conveyance was the settlement stated; that is to say, it was the agreement on the part of *448the Poe Company to pay plaintiff the sum of two thousand five hundred and seventy-five dollars out of the first net proceeds of ores from its mine, crushed and reduced at its mill; and, on the part of the plaintiff, that said sum should not be a debt otherwise collectible of the Poe Company, until there were net profits, and then only to the extent thereof. The company agreed to pay, and the plaintiff to receive, the amount agreed upon, out of the net proceeds, and not otherwise. If there should be no such proceeds, nothing was to be due or payable; and, outside of the original estimate, the ten thousand dollars which were paid, that agreement and the rights given thereby, formed the consideration of the conveyance. Plaintiff took his chances upon the net proceeds, and the company made itself liable in a certain event only.
It is admitted that there have been no proceeds after payment of the expenses; and, more than that, it appears that the proceeds have fallen far short of paying the actual expenses.
Such being the case, it is plain that there is nothing due or payable from the company to plaintiff, unless there are facts alleged which relieve plaintiff from the consequences of his agreement, and enable him to pursue the remedy now sought, as he might have done, if the transaction had been an ordinary sale and purchase without payment of the purchase money.
Wo express no opinion as to what plaintiff’s rights or remedies would have been, if the inability to pay from the net proceeds had been caused by the fault of the company, because that is not alleged or claimed. It was the duty of the company, under the covenants stated in the deed, to work the mine, and by proper means extract the gold and silver from the ores. It is alleged that both parties fully believed the sum of two thousand five hundred and seventy-five dollars and interest, besides working expenses, would be realized, from the ores, but that they proved very base and refractory, and that both plaintiff and the company were deceived; that, contrary to the expectations of both parties, the ores were more refractory and base than any *449others on the Pacific coast; that the company, after expending large sums of money in tests and experiments, and in building furnaces and other appliances for the reduction of said ores, from December, 1873, to and including the summer of 1876, abandoned further efforts to work its ores and mines; that the company not only expended large sums of money in working the mine and reducing the ores, but that, in time, it became largely indebted for supplies, labor, and money, expended in its business of mining and working ores; to secure which it mortgaged its mines, and the mill and mill-site in question, for about five thousand dollars; that being unable to pay said mortgage indebtedness or any part thereof, it suffered a sale of its entire property under an order and decree of a competent court, on the seventh day of March, 1878, at the suit of defendant, Briggs, for the sum of eight thousand and nine dollars; that the company is hopelessly insolvent, being largely indebted to other persons; that for the purpose of complying with his covenants, plaintiff has waited until all reasonable assurance of receiving payment in the manner agreed, and from the sources stipulated, has ceased, and until the company, by its own acts and inability to pay, has been deprived of its means of complying with its covenants to pay plaintiff from the profits and proceeds of its mine and mill.
The above are all the facts stated, from which it is, or. can be, claimed that plaintiff has a right of action either for money due, or for the enforcement of a vendor’s lien. If, under the contract, plaintiff has no right of action to recover a money judgment, it follows, of course, that he can not maintain this suit to enforce the lien claimed. The existence of a debt due as purchase money, is a condition precedent to a right of action to enforce the lien.
It is not alleged, nor does it anywhere appear, that the Poe Company failed to do anything which it should have done, or did anything which it ought not to have done under its contract. There is no allegation of fraudulent acts, or even of errors in judgment. It worked its mine, and reduced its ores, as it agreed to do. In so acting, debts were contracted which it was unable to pay, and the result *450was a forced sale of its property. Nothing appears which indicates aught but an honest desire and a long-continued effort on its part to carry out its contract. The property was sold as stated, but no fault is ascribed to the company in being unable to avert that disaster.
It is alleged that, after working the mine and running the mill some three years, further efforts were abandoned; but it is not charged that the company, under the circumstances, ought to have continued its work, or that it could have done so with profit.
Under the contract, the only condition that could make the claim upon which this suit is based an enforceable debt does not exist, and no facts are stated which relieve the plaintiff of the necessity of showing the existence of that condition, in order to maintain his suit against either defendant.
The complaint does not state a cause of action, and the judgment appealed from is affirmed.