You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the IERC721Internal interface you define the following function usedId:
function usedId(uint256tokenId) externalviewreturns (bool);
I'm having a hard time to understand what is the reason behind using this as part of the interface. In your ERC721Compliant contract, you declare it but not use it:
assertWithMsg(!token.usedId(tokenId), "Token ID minted is not new");
If you want to track the used ids, you should update it after the above test assertion to make sense.
Furthermore, the README section on the ERC721 is outdated. There is no ITokenMock in the ERC721 case for example, but IERC721Internal. I would recommend making it consistent with the ERC20 example tho & updating the docs about the latest status quo.
The text was updated successfully, but these errors were encountered:
Hey @pcaversaccio , appreciate you opening an issue. I think usedId was just to facilitate checking that the same tokenId cannot be minted more than once, but it might not have been implemented fully/properly. Good point on the README being outdated, I can probably get to fixing this sometime next week.
In the
IERC721Internal
interface you define the following functionusedId
:I'm having a hard time to understand what is the reason behind using this as part of the interface. In your
ERC721Compliant
contract, you declare it but not use it:properties/contracts/ERC721/external/test/ERC721Compliant.sol
Line 11 in 58fcb6f
If someone adds something like
usedId[id] = true
to the_customMint
function, the following property always fails obviously:properties/contracts/ERC721/external/properties/ERC721ExternalMintableProperties.sol
Line 33 in 58fcb6f
If you want to track the used ids, you should update it after the above test assertion to make sense.
Furthermore, the
README
section on theERC721
is outdated. There is noITokenMock
in theERC721
case for example, butIERC721Internal
. I would recommend making it consistent with theERC20
example tho & updating the docs about the latest status quo.The text was updated successfully, but these errors were encountered: