In September, 1890, F. J. Owens and J. V. Owens, who were brothers and copartners, entered into a written contract with the state, through the harbor commissioners, to construct a section of the seawall and wharf on the water-front of the city of San Francisco.
On February 11, 1891, the Owens brothers assigned their said contract to defendant, Wood, as security for advances made and to be made by Wood to them, and constituted Wood their attorney in fact, with authority to demand and receive all warrants and moneys due or *294to become due them under said contract, by the following instrument:
“For value received, we hereby assign and transfer to J. M. Wood all our right, title, and interest in, to and under the contract to construct section B of the seawall, thoroughfare and wharf on the water-front of the city and county of San Francisco, made by us with the proper authorities of the state of California, and dated September 22, 1890, at said city and county. This assignment is made by us to said Wood by way of security for advances made and ' to be made by said Wood to us, and we do hereby authorize and empower him, the said Wood, as our attorney in fact, to demand and receive and collect all certificates, warrants, and moneys due or to become due thereunder.
“ Witness our hands this eleventh day of February, 1891, at said city and county. Owens Beothees,
“ F. J. Owens,
“ J. V. Owens.”
On March 18, 1891, the Owens brothers entered into a contract with Reiley & Loane, whereby they agreed to excavate a cellar, which contract they also assigned to defendant, Wood, on March 19, 1891, by the following instrument:
State op Calipoenia, )
City and County of San Francisco.)
“ For value received, we hereby sell, assign, transfer, and set over unto J. M. Wood, as security for moneys advanced by him to us, our certain contract and agreement made with Messrs. Reiley & Loane, made on, to wit, March 18, 1891, to excavate a cellar at the southeast corner of Filbert and Sansome streets, in said city and county, amounting to the sum of $3,150, on land belonging to Mrs. Robert C. Johnson.
“ Dated March 19, 1891. F. J. & J. V. Owens.”
At the time of the assignment of the seawall contract the Owens brothers were indebted to the defendant, *295Wood, in the sum of about three thousand dollars for money theretofore loaned; and on that day he loaned them fifteen hundred dollars more to enable them to pay the men employed by them as laborers in performance of the seawall contract.
During the following months of April and May, 1891, the Owens brothers carried on the work on both contracts at the same time, and paid their laborers by orders or checks on defendant Wood, which he paid, and which were drawn in the following form:
“ $56. July 19, 1891.
“Pay to the order of C. Sheridan fifty-six dollars, value received, and charge the same to account of
“ F. J. & J. V. Owens.”
In July, 1891, Wood refused to pay any more of such checks, and thereafter Owens brothers failed. At the time of their failure they were indebted to the plaintiff and thirty-three others for labor on the seawall and cellar in sums ranging from three to one hundred and ten dollars, and each of the other thirty-three assigned his demand to the plaintiff, and thereupon plaintiff commenced this action to recover his own demand and that of the thirty-three others assigned to him, the complaint consisting of thirty-four counts, in each of which it is alleged that defendants are indebted to plaintiff in a sum therein named “ for work and labor performed for them at their special instance and request.”
The separate answer of the defendant, Wood, is a special denial of all material averments in each count so far as they relate to him. Neither of the Owens brothers answered.
The court found that all the allegations of the complaint are true, and that the answer is wholly false, and rendered judgment against the defendant, Wood, alone for the sum of two thousand and sixty-two dollars and fifty-seven cents and costs taxed at ninety-seven dollars and fifty cents.
The parol evidence, without conflict, is positive to the effect that Wood had nothing to do with the work on *296the seawall or on the cellar; that he neither directly nor indirectly employed or discharged any laborer, but, on the contrary, that all laborers on the cellar or seawall, including the plaintiff and his assignors, were employed and wholly supervised by the Owens brothers. Nor did Wood pay for any part of such labor, though he paid orders or checks drawn on him by the Owens brothers in favor of laborers, but charged the amount so paid to Owens brothers, as directed to do in such orders.
If Wood was under any obligation to pay plaintiff or his assignors for labor performed on the cellar or seawall, such obligation must be deduced from the written assignments of the cellar and seawall contracts and the law applicable to such assignments. And accordingly counsel for respondent contend that Wood’s obligation to pay for such labor is the product of their application of section 1589 of the Civil Code to those assignments, which section reads as follows: “A voluntary acceptance of the benefit of a transaction is equivalent to a consent to all the obligations arising from it, so far as the facts are known or ought to be known to the person accepting.”
But we think this section applies only to “a transaction” to which the person accepting the benefit is, or purports to be, or is claimed to be, a party, but who would not have been bound by the transaction if he had not accepted the benefit thereof. For example, an alleged principal is not bound by a transaction for him or in his name by an assumed agent without authority, unless he accept the benefits of such transaction; and the application of this section of the Civil Code was thus exemplified by the. code- commissioners in their annotated edition, by citing the case of Bennett v. Judson, 21 N. Y. 238, in which the defendant was held to be bound by an unauthorized transaction in his name, on the ground that he had accepted the benefits thereof.
Wood purported to be, and was, a party to the transactions by which Owens and brother assigned to him *297the seawall and cellar contracts as security for money advanced, and he received a part, and claims all the benefits of, those transactions; and it appears that he not only consented to all the obligations on his part arising from those transactions, but that he has fully performed and discharged them. But Wood was not, did not purport to be, and was not represented to be, an original party to the seawall and cellar contracts. Did he become a party to those contracts by the assignment of them to him as collateral securby for money loaned? This seems to be the only remaining material question, and must be answered negatively.
As it appears that the contracts were delivered to Wood at the time they were assigned, and also appears on the face of the written assignments, as well as by extrinsic evidence, that the assignments were intended to operate as collateral security for the payment of debts, the legal effect of the assignments and the power of attorney to receive the warrants, and the money to become due under those contracts, was merely a pledge of those contracts creating a lien thereon subject to which the title to, and the general property in, the pledge remained in the pledgor (Civ. Code, sec. 2888; Haber v. Brown, 101 Cal. 452, and cases there cited); and such pledge and lien implied no obligation of the pledgee to perform, or to pay for, the work which the pledged contracts required to be performed by the pledgors—the Owens brothers. And surely no such obligation is expressly imposed by those assignments.
Nor is it true that Wood accepted or received any benefit from the transaction of executing the pledged contracts by the parties thereto, in the sense in which the word “benefit” is used in section 1589 of the Civil Code. True, he received part payment by Owens brothers of their debt to him from proceeds of their work done under those contracts; but other creditors of Owens brothers may have received payments from the proceeds of that work before the contracts were pledged to Wood; and creditors of contractors are often *298paid from the proceeds of work done under contract. But to say that all creditors who are thus paid accept or receive a benefit from the contract under which the work was done, in the sense of section 1589 of the Civil Code, and thereby obligate themselves to pay for such work, would be to give that section not only an absurd, but an outrageously unjust, effect. Yet Wood’s relation to the pledged contracts differs from that of the general creditors only in that he had secured a lien upon the proceeds of the work. But this distinction does not remove absurdity, nor mitigate the injustice. Why should a creditor who is secured by a pledge be in a worse condition than those who have no collateral security?
The case of Cutting Packing Co. v. Packers’ Exchange, 86 Cal. 574, 21 Am. St. Rep. 63, cited by respondent, is not in point. It differs from this case in several respects; but the most important difference, and that which makes it inapplicable, is this: that the assignment of the contract in that case was absolute, and was so intended by the parties. Neither party to it claimed or pretended that it was intended as security for a debt or for the performance of any act.
Other points made by the appellant are deemed unimportant in view of the construction which we have given to the assignments of the contracts and to section 1589 of the Civil Code.
The judgment and order are reversed and the cause remanded.