Skip to main content

is_canonical_erc721

Function is_canonical_erc721 

Source
fn is_canonical_erc721(name: &str) -> bool
Expand description

The OpenZeppelin contracts whose _mint skips the receiver check. ERC721 and ERC721Upgradeable declare the unchecked _mint; in the v4 line, ERC721Consecutive and ERC721ConsecutiveUpgradeable override it with a construction guard that forwards to the base through super._mint, still without a receiver check, so resolving to them is just as unsafe. In v5 the Consecutive extension overrides _update instead, and the two extra names match nothing.