From bd686a7b95c55d099a02b4c01dc1be261eed6b81 Mon Sep 17 00:00:00 2001 From: Makoto Inoue <2630+makoto@users.noreply.github.com> Date: Wed, 3 Apr 2024 13:00:22 +0900 Subject: [PATCH] Rename from IResolverSetter to IAddrSetter --- .../contracts/{IResolverSetter.sol => IAddrSetter.sol} | 2 +- crosschain-resolver/contracts/L1Resolver.sol | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) rename crosschain-resolver/contracts/{IResolverSetter.sol => IAddrSetter.sol} (82%) diff --git a/crosschain-resolver/contracts/IResolverSetter.sol b/crosschain-resolver/contracts/IAddrSetter.sol similarity index 82% rename from crosschain-resolver/contracts/IResolverSetter.sol rename to crosschain-resolver/contracts/IAddrSetter.sol index 312c98f5..f0ec1e6f 100644 --- a/crosschain-resolver/contracts/IResolverSetter.sol +++ b/crosschain-resolver/contracts/IAddrSetter.sol @@ -1,7 +1,7 @@ // SPDX-License-Identifier: MIT pragma solidity ^0.8.17; -interface IResolverSetter{ +interface IAddrSetter{ function setAddr(bytes32 node, address addr) external view; } diff --git a/crosschain-resolver/contracts/L1Resolver.sol b/crosschain-resolver/contracts/L1Resolver.sol index 8c445700..f486c716 100644 --- a/crosschain-resolver/contracts/L1Resolver.sol +++ b/crosschain-resolver/contracts/L1Resolver.sol @@ -15,7 +15,7 @@ import "@ensdomains/ens-contracts/contracts/resolvers/profiles/IExtendedResolver import {ITargetResolver} from './ITargetResolver.sol'; import {IMetadataResolver} from './IMetadataResolver.sol'; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; -import { IResolverSetter } from './IResolverSetter.sol'; +import { IAddrSetter } from './IAddrSetter.sol'; contract L1Resolver is EVMFetchTarget, ITargetResolver, IMetadataResolver, IExtendedResolver, ERC165 { using EVMFetcher for EVMFetcher.EVMFetchRequest; @@ -162,7 +162,7 @@ contract L1Resolver is EVMFetchTarget, ITargetResolver, IMetadataResolver, IExte (bytes32 node) = abi.decode(data[4:], (bytes32)); return _contenthash(node, target); } - if (selector == IResolverSetter.setAddr.selector) { + if (selector == IAddrSetter.setAddr.selector) { _writeDeferral(target); } } @@ -267,7 +267,7 @@ contract L1Resolver is EVMFetchTarget, ITargetResolver, IMetadataResolver, IExte interfaceId == type(IExtendedResolver).interfaceId || interfaceId == type(ITargetResolver).interfaceId || interfaceId == type(IMetadataResolver).interfaceId || - interfaceId == type(IResolverSetter).interfaceId || + interfaceId == type(IAddrSetter).interfaceId || super.supportsInterface(interfaceId); }