Regarding the metadata URI extension - I don't think it should be required that each token ID has an individual metadata URI. I think there should be a globalTokenURI
state variable that can be returned from tokenURI()
. If it's known that each token will have the same token URI then if the token URI was ever updated and you had 1,000 tokens you would need to loop through each token and update the token URI. That doesn't make sense if they will all be the same. I think the tokenURI()
function should optionally be allowed to take a token ID, but if there are no arguments required then it should return a global URI. I'm proposing:
function globalTokenURI() public view returns (string) {
return _globalTokenURI;
}
function modifyGlobalTokenURI(string _tokenURI) public onlyManager {
_globalTokenURI = _tokenURI;
}
thoughts?