You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
require(to != owner, "ERC721: approval to current owner");
we don't do it in ERC721._approve (internal)
That means its not ok to approve the owner, unless you do it internally ? IMO the check should move from the public to the internal function. (note that there is already a call to ERC721.ownerOf inside the internal version, so its not like we are saving an sload anyway)