Plaintiff, as a resident taxpayer of defendant city, brings this suit in equity to enjoin the city, its officers and their co-defendant, the Kern Incandescent Gas Light Company (hereinafter called the Kern Company) from carrying out what the petition calls a pretended contract alleged to have been made by the city with the Kern Company for lighting the streets.
According to the petition, on January 11, 1900, the Board of Public Improvements,- acting under authority of city ordinance 19892, approved December 7,1899, advertised for bids for a contract to light a large part of the city. In answer to the advertisement the Kern Company submitted a bid which was accepted by the board. Whereupon a contract was entered into between the city and the Kern Company, whereby the latter became obligated, for certain consideration, to furnish the light specified, and to secure the faithful performance of its contract the Kern Company, as the contract required, executed its bond with security payable' to the city in the penalty of two hundred thousand dollars.
The contract and bond are exhibited with the petition, the details of which it is unnecessary to set out in this statement.
*154The petition alleges that the Kern Company is a corporation organized under the laws of New Jersey with a nominal capital stock of $12,000, whereof, however, only $1,000 had been subscribed and $500 paid; that at the time this pretended contract was entered into and, this bond given to secure its faithful performance this foreign corporation had not complied with the statute' requirements of this State prerequisite to its admission into the State with authority to do business here, that is, had not complied with the requirements of sections 1025, 1026, 1315, 1316, 1317 and 1318, Revised Statutes 1899, but that after the contract and bond had been executed the corporation, preparatory to entering upon its performance, did file its statement and receive from the Secretary of State a license as required by section 1025. For its failure to comply with the terms of the statute before executing the contract the plaintiff in his petition draws the conclusion that the alleged contract and bond are void and upon that ground he seeks to have their- performance or enforcement enjoined. The petition is quite lengthy, but the force of it is contained in what is above stated. The city and the Board of Public Improvements filed a demurrer as did also the Kern Company. The grounds of the demurrers were, that the plaintiff had not legal capacity to maintain the suit,- and that the petition did not state facts sufficient to constitute a cause of action. The demurrers were sustained, and, plaintiff declining to plead further, final judgment for defendants was entered, whereupon plaintiff brings the cause here for review.
Section 1024, Revised Statutes 1899, declares:
‘ ‘ Every corporation for pecuniary profit formed in any other State, Territory or country, before it shall be authorized or permitted to transact business in this State, or to continue business therein if already established, shall have and maintain a public office or place in this State for the transaction of its business, where *155legal service may be obtained upon it, and where proper books shall be kept to enable such corporation to comply with the constitutional and statutory provisions governing such corporations, ’ ’ etc.
Section 1025 .requires every such corporation to file in the office of the Secretary of State a copy of its charter and a sworn statement by its chief man in this State, showing the proportion of its capital stock employed in its business here, and to pay into the State treasury on that proportion of its stock, incorporating taxes and fees equal to those required of domestic corporations upon their organization, whereupon the Secretary of State is required to give the corporation a certificate that it has complied with the laws of this State and is authorized to do business here.
Section 1026 imposes as a penalty for failure to-comply, with those requirements a fine of $1,000, and disability to' maintain a suit in "any court of this State.
Section 1315 forbids any such corporation to do. business in this State “without first procuring a license therefor, which license shall be granted by the Secretary of State.”
Section 1316 forbids the Secretary of State to issue such license to any corporation “if (upon inspection of its charter) it shall appear that such company or corporation could not organize under the laws of this State. ’ ’
When the Kern Company entered into the contract in question it did not have an office or place of business in this State as required by section 1024, and it had not taken out a license to do business here as provided in section 1025, and for the failure of the corporation to, comply with those conditions the plaintiff says this contract is void. That is the main proposition upon which the plaintiff’s case is bottomed.
The effect of the demurrers is to admit the facts pleaded, but not the conclusions drawn by the pleader.
It does not appear on the face of the petition where *156the contract was entered into, whether the Kern Company sent an agent to St. Lonis and entered into the contract there, or the city sent an agent to New York and entered into the contract there. The contract filed as an exhibit seems to indicate that it was executed, on the part of the Kern Company at least, in New York. If that is the case, then, even taking plaintiff’s interpretation of the term, the corporation did not “transact that business” in this State, and if it was a lawful contract where it was made, the statute of Missouri would have no*influence upon it, until the party should come to this State to perform it. Then the corporation wbuld be in the act of transacting or attempting to transact business here, and before it could lawfully do so it would have to comply with our laws. But we do not consider it material whether the contract was made in St. Louis or in New York; we refer to the fact merely, to illustrate the difference (in relation to the term “transact business”) between entering into a contract to do an act and the performance of the act. The one may be lawful per se and the other lawful only on condition. Of course, a contract can not be lawfully made to do an unlawful act, but a contract may be lawfully made to do an act which the contracting party can lawfully do only when he shall have complied with conditions or satisfied other demands, and his unconditional contract to do it carries with it the obligation to comply with those conditions or satisfy .those demands; he assumes the risk of being able to do so. Therefore, when the Kern Company entered into this contract, although it could not lawfully perform it without conforming to the conditions of the Missouri statutes, yet the contract carried by implication the obligation on the part of the company that it would conform to those conditions, and a neglect to do so, resulting in a failure to perform, would have been a breach of the contract.
Now, when our statutes say that a foreign corpora*157tion shall not “transact business” here until it estáblishes a public office in this State where books are kept and process may be served, and until it pays its quasi-incorporation tax and takes out its license, do they mean that the corporation must do all those acts before it can lawfully enter into a contract to do any business here? Does our law mean that when advertisements inviting bids on public or private works in this State are read by foreign corporations they are to understand that • they have not the right to bid. and have their bids accepted unless they shall have already complied with the terms of our statute to enable them to transact business here? No, that is not the meaning of our statutes. No such policy of exclusion has ever been shown in any o ? our legislative acts; foreign corporations have always been invited and encouraged to come.' The obtaining of a desirable contract is sometimes an inducement for a foreign corporation to come into the State; it is not bound to establish itself here before it can obtain such a contract.
Entering into a contract like the one in question undoubtedly is “transacting business” within the unlimited meaning of the term, but that is not the sense in which the term is used in the statute just quoted. As there used it means carrying on the work for which the corporation was organized and in its application to the facts of this case it means performing the work called for by the contract.
The Kern Company under the conditions stated in the petition had the right to enter into the contract in question and we hold it to be a legal and valid contract.
These views are sustained by the following authorities cited in the brief of the counsel for the respondents: 6 Thompson on Corp., sec. 7936; 24 L. R. A. note to page 295, et seq.; Cooper Mfg. Co. v. Ferguson, 113 U. S. 727; Coal & M. Co. v. Ladd, 160 Mo. 435.
There are other questions discussed in the briefs, *158but we deem it unnecessary to consider them because the point above decided is the end of the case.
The judgment is affirmed.
All concur.