During calculation of base uri, wrong signatures are defined, as a result, always getting base uri would be unsuccessful, and token uris would be used instead. This leads to forwarding empty base uri to L2 (although the NFT may have a valid base uri), leading to deploying collection L2 with incorrect base uri.
When the function _callBaseUri
is called, the wrong signatures _baseUri()
and baseUri()
are used.
While, the standard function signatures are _baseURI()
and baseURI()
.
https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/ERC721.sol#L88-L102
Wrong signature usage leads to forwarding wrong base uri to L2, leading to deploying collection L2 with incorrect base uri.
Likelyhood: Medium, no token using OZ version 2.X and 3.X will work. Impact: Low, Valid standard token won’t be mint with the URI but owner can use ERC721UriImpl function on the deployed token.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.