U.S. President Donald Trump said Iran wants to reach an agreement and expressed hope that the war could end soon.

Trump, who was in North Carolina for a midterm election campaign event, said, “I hope we’re close to ending the war. Iran wants to make a deal. We’ll see how it works out.”

Although Trump has repeatedly said that Iran wants to reach an agreement, negotiations between the two countries over the past several months have not resulted in a concrete deal.

Iran and the United States have continued attacks and threats against each other, while the war in the Middle East is approaching its seventh month.

The closure of the Strait of Hormuz, along with rising inflation, tariffs and fuel prices in the United States since the start of the war, continues to raise concerns around the world.

With the U.S. midterm elections approaching, Republican candidates are facing challenges. Against this backdrop, Trump has continued to speak publicly about negotiations and efforts to halt the war.

Meanwhile, Chinese Foreign Minister Wang Yi said China is willing to “protect” Iran’s rights following a meeting on Wednesday with Iranian Foreign Minister Abbas Araghchi.

During their meeting in Beijing, Wang said, “China is ready to strengthen dialogue with Iran and safeguard Iran’s legitimate rights and interests.”

Wang also said China was urging Iran and the United States “to remain rational and exercise restraint.”

Chinese President Xi Jinping is expected to travel to the United States next week to meet with President Donald Trump. China, one of Iran’s major trading partners, has been working to ease tensions.

“We do not want regional tensions to spread to Yemen and the Red Sea,” Wang said.

Separately, Oman said two sailors were killed and 23 were rescued after an attack on an oil tanker in the Strait of Hormuz.

Oman’s Maritime Security Centre said the Panama-flagged tanker El Gaya was forced to anchor at an Omani port after a fire broke out in its engine room.

The centre said the vessel was attacked about 2.4 kilometers from the Musandam Peninsula.

Iran’s Revolutionary Guard said the vessel was struck after an underwater mine exploded while it was travelling along a prohibited and unsafe route. The U.S. military, however, said Iran’s account was incorrect.

The U.S. military said the vessel had been struck by an Iranian missile last month and had also been subjected to a drone attack over the weekend.

The International Maritime Organization said that since the war between the United States and Iran began, 79 confirmed attacks have occurred against vessels attempting to pass through the Strait of Hormuz, resulting in the deaths of 22 seafarers.

Meanwhile, according to the Fars News Agency, two fishing boats operating near an Iranian port were attacked by “enemy drones” overnight, about 80 kilometers northeast of Musandam.

Fars News Agency, which is affiliated with the Revolutionary Guard, quoted the deputy governor of Hormozgan province as saying that several fishermen were missing following the incident and that search-and-rescue efforts were underway.

Captain Tim Hawkins, a spokesperson for U.S. Central Command (CENTCOM), said Iranian small boats recently attempted to take control of a U.S. unmanned vessel but failed after CENTCOM responded forcefully.

The Strait of Hormuz, through which one-fifth of the world’s fuel and natural gas passes, has remained a security concern for shipping because of regional tensions and missile and drone attacks.