The sperm donor agreement is between the woman and the man. There is no agreement between the child and the man. I seem to recall that one such case went to court and the child won.
Okay, I wasn’t sure. Maybe it will, eventually, be a trend.