The donkey wished a wart on its hind leg would disappear, and *it* did.

Are "it" and "wart" the same thing in the aforementioned sentence?
yes