@@ -27,10 +27,10 @@ contract L2Resolver is IL2Resolver, IERC165 {
2727 bytes32 public constant PARENT_NODE_NAMEHASH = 0xe0266f32655869693dc63423876e5a7367f6e55552b718bdf9c96d0b31f8155d ;
2828
2929 /// @notice The hash of the ".l2.eth" suffix.
30- bytes32 private constant _L2_ETH_SUFFIX_HASH = keccak256 (bytes ('.l2.eth ' ));
30+ bytes32 internal constant _L2_ETH_SUFFIX_HASH = keccak256 (bytes ('.l2.eth ' ));
3131
3232 /// @notice The length of the ".l2.eth" suffix.
33- uint256 private constant _L2_ETH_SUFFIX_LENGTH = 7 ;
33+ uint256 internal constant _L2_ETH_SUFFIX_LENGTH = 7 ;
3434
3535 /// @inheritdoc IL2Resolver
3636 IENS public immutable ENS_REGISTRY;
@@ -123,7 +123,7 @@ contract L2Resolver is IL2Resolver, IERC165 {
123123 * @param _key The key to store the data under.
124124 * @param _value The data to store under the key.
125125 */
126- function _setRecord (bytes32 _node , string calldata _key , bytes calldata _value ) private {
126+ function _setRecord (bytes32 _node , string calldata _key , bytes calldata _value ) internal {
127127 if (_node == REVERSE_LOOKUP_NODE) {
128128 // If the node is the reverse lookup node, then we validate the caller is the owner or an approved operator
129129 // of _value which is the encoded domain of the 3LD.
@@ -143,7 +143,7 @@ contract L2Resolver is IL2Resolver, IERC165 {
143143 * @param _caller The address to check.
144144 * @param _node The node to check.
145145 */
146- function _authenticateCaller (address _caller , bytes32 _node ) private view {
146+ function _authenticateCaller (address _caller , bytes32 _node ) internal view {
147147 address _owner = _getOwner (_node);
148148 if (_owner != address (0 )) {
149149 // If the node has an owner, then the caller must be an approved operator or the owner
@@ -164,7 +164,7 @@ contract L2Resolver is IL2Resolver, IERC165 {
164164 * @param _node The node to get the owner of.
165165 * @return _owner The owner of the node. Returns address(0) if the node is not owned by the ENSRegistry.
166166 */
167- function _getOwner (bytes32 _node ) private view returns (address _owner ) {
167+ function _getOwner (bytes32 _node ) internal view returns (address _owner ) {
168168 _owner = ENS_REGISTRY.owner (_node);
169169 if (_owner == address (NAME_WRAPPER)) {
170170 _owner = NAME_WRAPPER.ownerOf (uint256 (_node));
@@ -177,7 +177,7 @@ contract L2Resolver is IL2Resolver, IERC165 {
177177 * @param _owner The owner of the node.
178178 * @return _approved True if the _caller is an owner or an approved operator for the _owner, false otherwise.
179179 */
180- function _isApprovedOperatorOrOwner (address _caller , address _owner ) private view returns (bool _approved ) {
180+ function _isApprovedOperatorOrOwner (address _caller , address _owner ) internal view returns (bool _approved ) {
181181 if (_owner == _caller) return true ;
182182 _approved = ENS_REGISTRY.isApprovedForAll (_owner, _caller) || NAME_WRAPPER.isApprovedForAll (_owner, _caller);
183183 }
0 commit comments