G7 leaders on Wednesday hailed the US-Iran deal to end the Middle East war as a "historic opportunity" and hosted AI bosses for an unusual meeting to discuss greater protection for children online.The three-day meeting of the leaders of Britain, Canada, France, Germany, Italy, Japan and the United States has focused intensely on US President Donald Trump's deal to end the war with Iran and efforts to pressure Russia into brokering peace with Ukraine.France, whose President Emmanuel Macron is chairing the G7, published a communique overnight that said all the leaders had agreed on key geopolitical issues.German Chancellor Friedrich Merz said this was the first such joint statement agreed during Trump's second mandate."It was tough work but worth it," he said, describing the statement as a "success".Trump's memorandum of understanding with Iran, to be signed in Switzerland on Friday, "provides an historic opportunity to prevent Iran from acquiring any nuclear weapon and tackling the threats related to its regional and ballistic activities", it said. Canadian Prime Minister Mark Carney, speaking before the third day got underway, said the mooted deal "could be a game-changer".As well as increasing supplies of air defence equipment to Ukraine four years into the war launched by Russia, the leaders agreed to "increase the pressure on the Russian war economy" by strengthening sanctions, including on Moscow's fossil fuel revenues."We consider this the right moment to proceed with additional measures" now that the Strait of Hormuz, a key passage of Gulf oil and gas, is set to reopen in the wake of Trump's Iran deal, the statement said.Carney said he had noted a US "change in tone with respect to Ukraine", with Trump taking a harder line against Moscow and showing impatience over the casualty toll on both sides.G7 leaders also agreed to grant licences for Ukraine-based companies to produce long-range missiles and air defence systems, a diplomatic source said.- 'Whatever it takes' -At a lunch on Wednesday the digital sphere took centre stage, with some European G7 members pushing for more security to protect minors in a fast-changing world, moves that have irked the United States.