From 24fdfde436e32c7a6d05180d7ef13cf1c6366b44 Mon Sep 17 00:00:00 2001 From: vicnaum Date: Tue, 13 Feb 2024 17:39:04 +0100 Subject: [PATCH] misc: change handle namespace back from test to lens --- contracts/misc/ProfileCreationProxy.sol | 2 +- contracts/namespaces/LensHandles.sol | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/misc/ProfileCreationProxy.sol b/contracts/misc/ProfileCreationProxy.sol index 5833c53..7f80fce 100644 --- a/contracts/misc/ProfileCreationProxy.sol +++ b/contracts/misc/ProfileCreationProxy.sol @@ -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(); } diff --git a/contracts/namespaces/LensHandles.sol b/contracts/namespaces/LensHandles.sol index 3cddc55..22f7e3e 100644 --- a/contracts/namespaces/LensHandles.sol +++ b/contracts/namespaces/LensHandles.sol @@ -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;