It should be noted that drifting mines, unless they become inactive after one hour, are prohibitted by the Hague VIII Convention of 1907, of which the Persian Empire was a signatory. As a successor state to a signatory, Iran is bound by the convention.
If their mines have drifted off, can't be found, and are still a threat to shipping, Iran has committed a war crime.