This is impossible and incorrect. Firstly, there's no such thing a "morality of a country" and in any case the law does not represent it. For example, abortion is legal, yet considered immoral by a lot of people. Secondly, the law must by definition come after what is perceived as right by a majority of voters and thus it always represents an "old version" of it.
> Firstly, there's no such thing a "morality of a country" and in any case the law does not represent it.
By the same token, this is why it's always idiotic to talk about "the people". It is always wrong to say "the people chose" or "the people believe" or "the will of the people". Real life isn't a musical set in Paris starring Jean Valjean.