proposal-29-update-ipfs/test/GoerliENSTestProposal.sol

28 lines
1.1 KiB
Solidity
Raw Normal View History

2023-07-28 15:43:53 +03:00
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
import { IENSResolver } from "@interfaces/IENSResolver.sol";
import { IENSRegistry } from "@interfaces/IENSRegistry.sol";
import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";
contract GoerliTestProposal is Ownable {
address ensResolverAddress = 0xd7a4F6473f32aC2Af804B3686AE8F1932bC35750; // goerli ENS resolver for testedy.eth
address ensRegistryAddress = 0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e;
bytes32 testNode = 0x121818cfd40893900bebefa5ccf60544db43ba8fa1d2d56433984132883bee88; // test.testedy.eth
function executeProposal() public onlyOwner {
IENSResolver ensResolver = IENSResolver(ensResolverAddress);
bytes memory classicUiIPFSContenthash = hex"e301017012208124caa06a8419371b1d2eab9180191727d1ce0c0832975362f77a679ce614b6";
ensResolver.setContenthash(testNode, classicUiIPFSContenthash);
}
function returnDomainOwnership() public onlyOwner {
IENSRegistry ensRegistry = IENSRegistry(ensRegistryAddress);
ensRegistry.setOwner(testNode, owner());
}
}