If we have to gain the inheritance by following those laws, then it no longer comes to us because of the promise. However, God freely gave the inheritance to Abraham through a promise.