Skip to content

Commit

Permalink
T
Browse files Browse the repository at this point in the history
  • Loading branch information
Vectorized committed Dec 11, 2024
1 parent 754cec9 commit 0860b57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ClustersNFTV1.sol
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ contract ClustersNFTV1 is UUPSUpgradeable, Initializable, ERC721, Ownable, Enume
uint256 packed = _getClustersNFTStorage().nameData[clusterName].packed;
id = uint40(packed);
owner = _ownerOf(id);
startTimestamp = (packed >> 48) & 0xffffffffff;
startTimestamp = uint40(packed >> 48);
}

/// @dev Returns the token URI renderer contract.
Expand Down Expand Up @@ -301,7 +301,7 @@ contract ClustersNFTV1 is UUPSUpgradeable, Initializable, ERC721, Ownable, Enume
if (uint40(p) != 0) revert NameAlreadyExists();

unchecked {
if ((id = ++$.totalMinted) > 0xffffffffff) revert();
require((id = ++$.totalMinted) < 1 << 40);
}
uint96 truncatedName = uint96(bytes12(clusterName));
if (bytes12(truncatedName) != clusterName) {
Expand Down

0 comments on commit 0860b57

Please sign in to comment.