¶1The complaint to which the demurrer was interposed set forth, as the plaintiff’s cause of action, the making of an agreement under seal between himself and William H. Richards, by which it was agreed that a division or party wall should be built upon the line of land owned by these parties, on the westerly side of Eleventh avenue in the city of 3STew York, the wall to be erected equally upon the property of each of these persons. It was further agreed, as the plaintiff was about to erect the wall, that when Richards, his heirs or assigns, should make use of it by the erection of a building upon his lot, there should be paid to the plaintiff, his heirs or assigns, one-half the cost of erecting the party or division wall, and that this cost should be fixed or ascertained by two persons, one to be chosen by each party, or by a third party, chosen by these two, if they should be unable to agree. It was *40further agreed by the parties for themselves, their respective heirs and assigns, that the cost of repairing or rebuilding
¶2It is entirely clear from the complaint that the agreement imposed a personal obligation upon Richards to pay to the plaintiff one-half the expense or value of the erection of this wall; and he, for his protection, when he conveyed his lot to Cohen, charged it with the duty and obligation of liquidating and discharging this indebtedness. The obligation in this manner created could only be discharged to the plaintiff, and it is to be inferred from the acts of the parties that it was intended by them that it should be so performed by the grantee of the property; and the same intention actuated Cohen in making his conveyance to the defendant. It was to continue the imposition of the burden of this obligation upon the property, not only for the relief of Richards, but for the benefit and advantage of the plaintiff. And when real estate is in this manner conveyed the effect of the conveyance is to create a charge upon it for the satisfaction of the obligation provided for. Jumel v. Jumel, 7 Paige, 591. And the property so charged becomes the primary fund, or source of payment; and, as between its grantor and grantee, the former afterwards stands as a surety only for the payment of the indebtedness. This was held to be the law governing courts of equity in that case, and the case of Cox v. Wheeler, Id. 248, supports the same principle. And it has since been sanctioned by the cases of Belmont v. Coman, 22 N. Y. 438; Dingeldein v. Railroad Co., 37 N. Y. 575; and Hamill v. Gillespie, 48 N. Y 556. And this obligation distinguishes tiiis case from those of Cole v. Hughes, 54 N. Y. 444, and Scott v. McMillan, 76 N. Y. 141. And as it placel Richards in the *41attitude of a surety for the extinguishment of the indebtedness, and as between himself and the owner of his lot, that was made the primary source of payment for the benefit of the plaintiff, he was entitled in equity to bring this action for the enforcement of the charge in this manner created, and the satisfaction and payment of the amount due to him as the expense of building one-half the wall. Pratt v. Adams, 7 Paige, 615, where the principle was stated to be that “it has been settled by a long course of judicial decisions that where a person standing in the situation of indorser or surety is furnished or provided by the principal debtor with a fund or with collateral security for such a purpose, the creditor is. in equity entitled to have it applied in satisfaction of the debt.” Id. 627. And by the conveyances which were made of the property the plaintiff seems to be so far within this principle as to entitle him to enforce the charge created in this manner against the land, for the satisfaction of his demand. And the regular mode of satisfying the demand out of the land was to direct a sale of it, as the judgment has done in this i nstance, and the payment of the proceeds, so far as they may be necessary for that object, over to the plaintiff. The case of Bedell v. Kennedy, 88 Hun, 510, lias gone even further than this, holding that a personal liability exists against the grantee of property acquiring title in this manner for the performance of a party-wall agreement. It is not necessary to consider whether that case is in harmony with the other authorities or not. It is a determination of this general term, and sanctions so much of the judgment as has provided for the recovery of any deficiency, after the sale of the land, from the defendant; and as long as this authority remains, as it still does, in legal force, it is required to be followed, and it supplies a sufficient support for the portion of 'the judgment sustaining this agreement as a personal obligation against the.defendant. To dispose of the case it is unnecessary to refer to any other of the authorities cited, for the judgment appears to be right, and it should be affirmed, with costs. All concur.