Skip to content

Commit

Permalink
Rename from IResolverSetter to IAddrSetter
Browse files Browse the repository at this point in the history
  • Loading branch information
makoto committed Apr 3, 2024
1 parent 9dcfa2c commit bd686a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -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;
}

6 changes: 3 additions & 3 deletions crosschain-resolver/contracts/L1Resolver.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}
}
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit bd686a7

Please sign in to comment.