Opinion by
Henderson, J.,The question presented is, When does the time begin to run within which an action must be brought against a stockholder of an insolvent corporation on a subscription for unpaid capital stock to prevent the bar of the statute of limitations? The same question arose in Franklin Savings Bank v. Bridges, 20 W. N. C. 43. In that case the action was brought by the assignee of the insolvent corporation and the action having been brought more than six years after the insolvency the court below granted a nonsuit which judgment was affirmed by the Supreme Court. The case was put on the ground that by the act of insolvency the creditors of the corporation were in the position of one to whom the obligation is due on demand or who could make demand upon the doing of an act himself, and that if an assessment or decree of the court were necessary to entitle the plaintiff to sue such order could have been made and the assignee as the representative of the creditors should have taken that action. By the fact of the assignment the creditors were entitled to demand the performance of the subscriber’s contract to pay. This case was approved in Swearingen v. Sewickley Dairy Co., 198 Pa. 68, where it was said that unpaid stock subscriptions are a fund in the hands of the stockholders charged with a trust for the payment of the corporate debts which trust does not exist by reason of any statute but is founded on principles of equity on the theory that the capital is pledged as sécurity to those who deal with the corporation. As long as the corporation is solvent the subscription is payable in accordance with the terms of the contract, but when it becomes insolvent the contract between it and the subscriber is terminated and the liability thereunder is for as much of the sub*43scription as is necessary to pay the subscriber’s proportion of the debts of the corporation. In that connection the court said: “It would seem that the status of the stockholder as holder of a fund liable at least contingently to the creditors, must be fixed at the time and by the fact of the ascertainment of insolvency. It is the general rule that insolvency fixes the relative rights of all the parties conperned. From that moment the unpaid subscriptions become part of the assets for payment of the creditors.” The conclusion of the court was: “The right of action of the plaintiff, whatever it was, accrued upon the fact of insolvency of the dairy company shown by the assignment for the benefit of creditors, and the statute of limitations began to run from that date.” It was accordingly held that the bill to enforce contribution could not be sustained. In Cook v. Carpenter, Lipper’s Appeal, 212 Pa. 165, Chief Justice Mitchell in referring to Franklin Savings Bank v. Bridges, said: “there the corporation had been insolvent for more than six years and the decision was put explicitly on that ground which is now well settled.” And in Schofield v. Turner, 213 Pa. 548, the decision in Swearingen v. Dairy Co. 198 Pa. 68, was considered and the decision stated again with approval. The plaintiff’s action is on the contract of the stockholder. The order of the court authorizing an assessment on the stockholders who had not paid their shares in full was such an act as might have been made by the corporation before the appointment of a receiver and the court, in making it, took the place of the directors, having taken control of the affairs of the corporation by the appointment of a receiver: Hawkins v. Glenn, 131 U. S. 319; Great Western Tel. Co. v. Gray, 122 Ill. 630; Scovill v. Thayer, 105 U. S. 143. The order authorizing the assessment was not a judgment. Its effect did not merge the cause of action against any stockholder on his contract of subscription. It was conclusive evidence of the necessity for making the assessment and bound the stockholdérs without personal notice to that extent, but the *44stockholder sued had the right to set up any defense which he might have to an action on the contract, among which defenses is the plea of the statute of limitations: Great Western Tel. Co. v. Purdy, 162 U. S. 329. It is undoubtedly true that in some of the states and in the federal courts the right of action is said to arise when the assessment or call is made on the subscription, but this is not the rule in Pennsylvania as declared in the cases referred to. The act of insolvency of the corporation fixes the period from which time is to be measured in determining the operation of the statute of limitations. It is said, however, that the question should be determined by the law of New Jersey within which jurisdiction the corporation was created, but we cannot agree with the appellant’s view of this proposition. The limitation of actions is governed by the lex fori and is regulated by the legislation of the state in which the action is brought, notwithstanding the fact that the legislation or the judicial construction is different from that prevailing in other jurisdictions: Bauserman v. Blunt, 147 U. S. 647; Balkam v. Woodstock Iron Co., 154 U. S. 177; Great Western Tel. Co. v. Purdy, 162 U. S. 329; Platt v. Wilmot, 193 U. S. 602; Andrews v. Herriot, 4 Cowen, 508; Watson v. Brewster, 1 Pa.*381.
The judgment is affirmed.