Board Thread:Theories and Speculation/@comment-45444155-20200617172704/@comment-46080847-20200619095020

This is how I see it: Nagato's Edo had Rinnegan because Nagato had Rinnegan at the time of death.

Madara's body was experimented with to high heaven, and Kabuto simulated the circumstances with which the Rinnegan could be given, but they were simulated using the Edo's design. Notice that when he is revived, his eyes turn to dust, unlike the rest of his body.