misc: change handle namespace back from test to lens

This commit is contained in:
vicnaum
2024-02-13 17:39:04 +01:00
parent b9b8b2f969
commit 24fdfde436
2 changed files with 2 additions and 2 deletions

View File

@@ -44,7 +44,7 @@ contract ProfileCreationProxy is ImmutableOwnable {
string calldata handle
) external onlyOwner returns (uint256, uint256) {
// Check if LensHubV1 already has a profile with this handle that was not migrated yet:
bytes32 handleHash = keccak256(bytes(string.concat(handle, '.test')));
bytes32 handleHash = keccak256(bytes(string.concat(handle, '.lens')));
if (LensV2Migration(LENS_HUB).getProfileIdByHandleHash(handleHash) != 0) {
revert ProfileAlreadyExists();
}

View File

@@ -32,7 +32,7 @@ contract LensHandles is ERC721, ERC2981CollectionRoyalties, ImmutableOwnable, IL
// We used 31 to fit the handle in a single slot, with `.lens` that restricted localName to use 26 characters.
// Can be extended later if needed.
uint256 internal constant MAX_LOCAL_NAME_LENGTH = 26;
string public constant NAMESPACE = 'test';
string public constant NAMESPACE = 'lens';
uint256 internal immutable NAMESPACE_LENGTH = bytes(NAMESPACE).length;
bytes32 public constant NAMESPACE_HASH = keccak256(bytes(NAMESPACE));
uint256 public immutable TOKEN_GUARDIAN_COOLDOWN;