mirror of
https://github.com/lens-protocol/core.git
synced 2026-01-09 06:08:04 -05:00
misc: change handle namespace back from test to lens
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user