From 06c15a26e102ed6bcc5845ab792fde93ea6e5ca5 Mon Sep 17 00:00:00 2001 From: Volodymyr Lykhonis Date: Mon, 13 Nov 2023 07:04:11 -0500 Subject: [PATCH] Close valid name check --- src/page/PageName.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/page/PageName.sol b/src/page/PageName.sol index e8ebdd4..8ffcdf3 100644 --- a/src/page/PageName.sol +++ b/src/page/PageName.sol @@ -142,7 +142,7 @@ contract PageName is LSP8EnumerableInitAbstract, ReentrancyGuardUpgradeable, Pau emit ReleasedName(tokenOwner, tokenId); } - function _isValidName(string memory name) public view returns (bool) { + function _isValidName(string memory name) private view returns (bool) { bytes memory chars = bytes(name); uint256 length = chars.length; if (length < minimumLength || length > 32) {