// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; import { ProposalUtils } from "./utils/ProposalUtils.sol"; import { UpdateENSDataProposal } from "@root/UpdateENSDataProposal.sol"; import { console2 } from "@forge-std/console2.sol"; import { IENSResolver } from "@interfaces/IENSResolver.sol"; import { IENSRegistry } from "@interfaces/IENSRegistry.sol"; import { ENSNamehash } from "./ENSNamehash.sol"; contract TestExampleProposal is ProposalUtils { using ENSNamehash for bytes; IENSResolver internal ensResolver = IENSResolver(0x4976fb03C32e5B8cfe2b6cCB31c09Ba78EBaBa41); IENSRegistry ensRegistry = IENSRegistry(ENSAddress); modifier executeCurrentProposalBefore() { createAndExecuteProposal(); _; } function calculateDomainNode(string memory domain) internal pure returns (bytes32) { return ENSNamehash.namehash(bytes(domain)); } function createAndExecuteProposal() public { address proposalAddress = address(new UpdateENSDataProposal()); proposeAndExecute(proposalAddress); } function test() public { createAndExecuteProposal(); } }