One ground of objection to the complaint is that it does not allege that the plaintiff has complied with the laws of Congress requiring a foreign corporation to file a copy of its articles of incorporation, a statement of its liabilities, and consent to be sued with the secretary of the district and the clerk of the court. The objection is overruled. The statute only requires a foreign corporation to .take such action “before doing business in the district." Section 225, Civ. Code. There is nothing on the face of the complaint to show that plaintiff is doing business in the District of Alaska; the fair inference from the facts stated is that it does business only in Seattle, Wash. A suit to collect a note in its courts is not necessarily doing business in Alaska.
Another objection urged upon the demurrer is that the complaint discloses that the plaintiff seeks to recover a personal judgment against Fish upon a promissory note made and signed by Loomis only prior to the formation of the LoomisFish partnership. It is strongly urged that there is no such privity of contract between plaintiff and Fish as will support the action, and the court is cited by the defendant to the cases of National Bank v. Grand Lodge, 98 U. S. 124, 25 L. Ed. 75, and Keller v. Ashford, 133 U. S. 610, 10 Sup. Ct. 494, 33 L. Ed. 667, in support of the argument.
In the case of National Bank v. Grand Lodge, supra, the court says:
*348“No doubt the general rule is that sueb a privity must exist. But there are confessedly many exceptions to it. One of them, and by far the most frequent one, is the case where, under a contract between two persons, assets have come to the promisor’s hands or under his control which in equity belong to a third person. In such a case it is held that the third person may sue in his own name. But there the suit is founded rather on the implied undertaking the law raises from the possession of the assets than on the express promise.”
In that case the court held that the facts did not bring the case within either the rule or the exception, but in the case at bar they certainly bring it within the exception, if not within the rule itself. Keller v. Ashford, 133 U. S. 610, 10 Sup. Ct. 494, 33 L. Ed. 667; Johns v. Wilson, 180 U. S. 440, 21 Sup. Ct. 445, 45 L. Ed. 613.
Before the agreement made by Fish .with Loomis and the copartnership to pay Loomis’ debt to the plaintiff will sustain plaintiff’s action against Eish, it must appear that there was a mutual agreement, founded on a consideration between all of them, to that effect.
“The mutual assent of all the three parties seems to be necessary to make an effectual novation or substitution; for so long as the debtor has made no promise, or come under no obligation to the party in whose favor the order-is given, it is a mere mandate, which the creditor may revoke at his pleasure.” Parsons on Contracts (6th Ed.) vol. 1, p. 220.
In the case at bar, Loomis, the copartnership, and Eish all agreed in writing upon a full consideration that the partnership and Fish should assume and pay this identical note. There was a complete substitution for value between two of the parties, and that condition existed when this action was instituted by the third (the plaintiff), who thereby assented to it; thus completing the mutuality of assent of all parties to the substituted contract.
But if it should be thought that the bringing of the suit to enforce the contract is not a sufficient assent on the part of the plaintiff, yet the case is clearly within the exception mentioned *349ill National Bank v. Grand Lodge, supra. The partnership first, and Fish subsequently, received, and still retains, the assets of the original promisor, including the property for which the note was given, and in consideration thereof assumed to pay the note.
“In short, if one person agrees with another primarily liable for a debt due from that other to a third person, so that as between the parties to the agreement the first is the principal and the second the-surety, the creditor of such surety is entitled in equity to be substituted in his place, for the purpose of compelling such principal to pay the debt.” Keller v. Ashford, 133 U. S. 610, 10 Sup. Ct. 494, 33 L. Ed. 667; also, Johns v. Wilson, 180 U. S. 440, 447, 21 Sup. Ct. 445, 477, 45 L. Ed. 613.
In Alaska the distinction between actions at law and suits in equity, and the forms of all such actions and suits,_ are abolished, and there is but one form of action for the enforcement or protection of private rights and the redress or prevention of public wrongs, which is denominated a “civil action.” Section 1, Code Civ. Proc. The distinction between actions at law and suits in equity noted as important in the cases cited from the Supreme Court of the United States have no bearing in a code state or territory. Johns v. Wilson, 180 U. S. 440, 448, 21 Sup. Ct. 445, 448, 45 L. Ed. 613.
The complaint in this case states a cause of action under the first exception to the general rule mentioned by the Supreme Court of the United States in National Bank v. Grand Lodge, 98 U. S. 125, 25 L. Ed. 75, even if it does not bring the action-squarely within the rule itself; consequently, the demurrer is overruled.
Defendant Eish also moves to discharge the attachment against his property (1) for the reason, as he alleges, that this, is a suit in equity; (2) because the undertaking on attachment is not signed by the plaintiff, but only by the surety; and (3) because the debt sued on is secured by mortgage.
The plaintiff may cause an attachment to issue against the-*350property of the defendant in this territory in an action upon a contract, express or implied, for the direct payment of money. Section 135, Code Civ. Proc. It is not necessary, as it is in some states, to allege fraud, or that the debtor has absconded, or is about to do so. This case is an action to recover upon an express contract for the direct payment of money, and it is immaterial, under the statute, whether defendant calls it an action at law or a suit in equity; the attachment would lie in either case.
The undertaking in attachment is conceded to be formal in every other respect than that it is not signed by the plaintiff, but only by the surety. Section 137 provides that, upon filing the affidavit with the clerk, the plaintiff shall be entitled to have the writ of attachment issued as soon thereafter as he shall file with the clerk his undertaking, with one or more sureties, together with other formal requisites. The objection to this undertaking is that it is not “his undertaking” unless plaintiff personally signs -it. This presents a real question, but, as I am satisfied that there is nothing in the statute or in the policy of the law to prevent the plaintiff from amending its undertaking at any time before judgment, I am constrained to grant its application to amend the undertaking, and save the question. Code Civ. Proc. Alaska, §§ 92, 97; Tilton v. Cofield, 93 U. S. 163, 23 L. Ed. 858.
Section 151 of the Code of Civil Procedure provides that the defendant may, at any time before judgment, except where the cause of attachment and the cause of action are the same, apply to the court or the judge thereof, where the action is pending, to discharge the attachment in the manner and with the effect provided in sections 121 and 122 for the discharge of a defendant from arrest. Sections 121 and 122 provide that a writ of arrest may be vacated on affidavits or other proofs; and if upon such hearing it appears that there was not sufficient cause to allow the writ, or that there is other good cause which *351would entitle it to be discharged, it should be vacated. Since, however, an attachment may be issued in Alaska in any action upon a contract, express or implied, for the direct payment of money, it necessarily follows that the cause of attachment and the cause of action in this case are the same, and the effect of hearing the facts upon affidavit would be to try the case upon its merit before issue joined. These sections were adopted from Oregon, and have been construed by the Supreme Court of that state in the case of Bank of Winnemucca v. Mullaney, 29 Or. 268, 45 Pac. 796, to be impotent and of no effect in a case of this kind. That construction is adopted by this cour„t (Anvil Gold Min. Co. v. Hoxie, 1 Alaska, 604; James v. Appel, 192 U. S. 129, 24 Sup. Ct. 222, 48 L. Ed. 377), and it follows that the attempt to try the question upon the affidavit of Oscar Fish that the debt was secured by mortgage cannot be sustained. That question does not appear upon the face of the pleadings, and can only be reached upon answer and trial. The motion to discharge the attachment is denied.