U.S. President Donald Trump reversed Tuesday his plans to charge a 20% toll on all cargo going through the Strait of Hormuz as part of the ​conflict ⁠with Iran a day after he announced it.

Instead, Trump said Middle Eastern countries will make investment and trade deals with the U.S.

U.S. had carried out waves of attacks for the third night in a row after Iran said it had closed the strait, prompting Trump on Monday to reinstate a blockade of Iranian shipping and propose the fee.

But just a little under five hours before the fee had been due to come into effect at 2000 GMT, Trump said the strait was open to all shipping traffic except that of Iran.

"Based on highly productive conversations with Middle East leadership, I have decided to replace the 20% United States Reimbursement Fee with Trade and Investment Deals that the various Gulf States will be making into the United States," Trump said in a post on Truth Social.