If it was because of Abraham’s doing good things that the record of his sins was erased {that God erased the record of his sins}, Abraham could then have been able to boast about that to people, but he would not have had any basis to boast to God about it.