Skip to content

Commit

Permalink
add comment about balanceOf assumption
Browse files Browse the repository at this point in the history
  • Loading branch information
frangio committed Jun 6, 2023
1 parent 35c1e6d commit 29ed898
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions contracts/token/ERC721/extensions/ERC721Enumerable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ import "../ERC721.sol";
import "./IERC721Enumerable.sol";

/**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds
* enumerability of all the token ids in the contract as well as all token ids owned by each
* account.
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds enumerability
* of all the token ids in the contract as well as all token ids owned by each account.
*
* CAUTION: `ERC721` extensions that implement custom `balanceOf` logic, such as `ERC721Consecutive`,
* interfere with enumerability and should not be used together with `ERC721Enumerable`.
*/
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
Expand Down

0 comments on commit 29ed898

Please sign in to comment.