Judge has assessed an item in Issue #240 as 2 risk. The relevant finding follows:
[LOW‑11] tokenURI() does not follow EIP-721
The EIP states that tokenURI() "Throws if _tokenId is not a valid NFT", which the code below does not do. If the NFT has not yet been minted, tokenURI() should revert
Proof Of Concept
161: function tokenURI(uint256 id) public view override returns (string memory) {
return PrivatePoolMetadata(privatePoolMetadata).tokenURI(id);
}
Judge has assessed an item in Issue #240 as 2 risk. The relevant finding follows:
[LOW‑11] tokenURI() does not follow EIP-721 The EIP states that tokenURI() "Throws if _tokenId is not a valid NFT", which the code below does not do. If the NFT has not yet been minted, tokenURI() should revert
Proof Of Concept 161: function tokenURI(uint256 id) public view override returns (string memory) { return PrivatePoolMetadata(privatePoolMetadata).tokenURI(id); }
https://github.com/code-423n4/2023-04-caviar/tree/main/src/Factory.sol#L161
17: function tokenURI(uint256 tokenId) public view returns (string memory) {