Calls to the non-public functions _baseUri()
and baseUri()
will fail, resulting in the TokenUtil::_callBaseUri() function always returning (false, "")
.
The TokenUtil::_callBaseUri() function retrieves the base URI of an NFT by attempting to call the _baseUri()
and baseUri()
functions. However, this approach is ineffective for Everai, where:
The EveraiDuo::_baseUri() function is not publicly accessible.
The baseUri()
function does not exist in the Everai contract.
Moreover, these functions are not part of the EIP-721 specification. As a result, when TokenUtil::_callBaseUri() attempts to retrieve the base URI by calling these functions, it always returns (false, "")
. This results in ineffective function execution and unnecessary gas consumption.
The _callBaseUri function call retruns false and the base URI cannot be fetched.
vscode
Get NFT token URI by the nft::tokenURI()
function and remove the uneccessary _callBaseUri()
function calls.
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.