Counters

Counters

Git Source

*Stripped down version of OpenZeppelin Contracts * v4.4.1 (utils/Counters.sol), identical to * CountersUpgradeable.sol being a library. Provides * counters that can only be incremented. * Used to track the total supply of ERC721 ids. **

*Include with using Counters for Counters.Counter; **

Stripped down version of OpenZeppelin Contracts v4.4.1 (utils/Counters.sol), identical to CountersUpgradeable.sol being a library. Provides counters that can only be incremented. Used to track the total supply of ERC721 ids.

Include with using Counters for Counters.Counter;

Note: security-contact: [email protected] *

Functions

current

function current(Counter storage counter) internal view returns (uint256);

increment

if implementing ERC721A there could be an overflow risk by removing overflow protection with unchecked, unless we limit the amount of tokens that can be minted, or require that totalsupply be less than 2^256 - 1

function increment(Counter storage counter) internal;

Structs

Counter

Last updated