Five big firms with energy practices are working on Chesapeake Energy Corp.’s pending $3.977 billion acquisition of WildHorse Resource Development Corp.—the second large Texas shale deal announced this week.

Wachtell, Lipton, Rosen & Katz and Baker Botts are representing Chesapeake, based in Oklahoma City, while Vinson & Elkins is advising Houston-based WildHorse. Akin Gump Strauss Hauer & Feld is representing NGP Energy Capital Management, WildHorse’s largest shareholder. And Latham & Watkins is representing The Carlyle Group, another investor in WildHorse, in the transaction.