When any such railroad, canal or turnpike lies partly within and partly without this state and shall have been purchased under a mortgage sale of the consolidated rights, property, privileges and franchises of either of said companies, and the foreclosure and sales shall have been carried on separately in the different states where the railroad, canal or turnpike was located, the new company which may be thereafter formed in each state shall be taken and considered to be one company in law and in fact; provided that the persons for or on whose account such purchase was made, shall be the same persons and shall so certify under the hand of the first president of the consolidated company in its certificate of organization, in which case all of the aforesaid rights, property, privileges and franchises of the consolidated companies shall be merged into the new or reorganized company.
N.J.S. § 48:3-27