Subject to the provisions of sections 49.33 to 49.41, with the written consent of the commissioner of commerce, any bank, savings bank, or trust company may effect a transfer of its assets and liabilities to another bank, savings bank, or trust company for the purpose of consolidating or merging, but the same shall be without prejudice to the creditors of either.