When a law is in its nature a contract, when absolute rights have vested under that contract, a repeal of the law cannot divest those rights.