Greece has passed the law enabling the debt swap.