Skip to content
This repository has been archived by the owner on Sep 15, 2022. It is now read-only.

Explanation for ownerOf() #200

Open
thomasoss opened this issue Mar 12, 2022 · 0 comments
Open

Explanation for ownerOf() #200

thomasoss opened this issue Mar 12, 2022 · 0 comments

Comments

@thomasoss
Copy link

thomasoss commented Mar 12, 2022

In the code of CreatureFactory.sol I think the explanation for ownerOf() is copied from the explanation of isApprovedAll(). A short explanation what ownerOf() is used for would be useful. Below the code piece I'm talking about
/**
* Hack to get things to work automatically on OpenSea.
* Use isApprovedForAll so the frontend doesn't have to worry about different method names.
*/
function ownerOf(uint256) public view returns (address _owner) {
return owner();
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant