Both classes of Warren Buffet's Berkshire Hathaway Inc. (BRK.A)   (BRK.B) stock reached all-time highs Tuesday even though the company's $9 billion bid to purchase power transmission company Oncor fell through. 

The deal's failure resulted in Standard & Poor's affirming the company's AA credit rating, saying that the company is no longer at risk for a credit downgrade. 

Berkshire had negotiated a $270 million deal breakup fee with Oncor. 

Berkshire couldn't maintain its momentum Wednesday afternoon as class A and B shares declined. 

Don't miss these top stories on TheStreet:

More from Stocks

Week Ahead: Trade Fears and Stress Tests Signal More Volatility To Come

Week Ahead: Trade Fears and Stress Tests Signal More Volatility To Come

3 Great Stock Market Sectors Millennials Should Invest In

3 Great Stock Market Sectors Millennials Should Invest In

Why Millennials Are Ditching Stocks for ETFs

Why Millennials Are Ditching Stocks for ETFs

Trump's 'Space Force' Could Launch a $1 Trillion Industry, Morgan Stanley Says

Trump's 'Space Force' Could Launch a $1 Trillion Industry, Morgan Stanley Says

Abiomed Stock Should Rise Some 12% From Here, Piper Jaffray Analyst Says

Abiomed Stock Should Rise Some 12% From Here, Piper Jaffray Analyst Says