If God had told Abram that Isaac will inherit the covenant. Then how can Abram sacrifice his son Isaac….DO YOU SEE THIS STORY as a real contradiction as we do? Why your God didn’t follow the logic order……as following: 1-asking Abram to bring his son up at mountain of moriah for a burnt offering …THEN after that test. 2-God tells Abram that Isaac will inherit him and have the covenant through his offspring!!!
It is not a contradiction at all. This was precisely the test, that he was given, to see if he would listen without asking questions. This is why he was told afterwards that now I see that you are truly G-d fearing. The reason he inherited Abraham was because he was from the real wife, Sarah, and not a concubine, (as stated in Genesis 17-19) not because of the sacrifice.