diff --git a/deploy/dnsregistrar/10_deploy_dnsregistrar.ts b/deploy/dnsregistrar/10_deploy_dnsregistrar.ts index 6f280f25..96b5c7d0 100644 --- a/deploy/dnsregistrar/10_deploy_dnsregistrar.ts +++ b/deploy/dnsregistrar/10_deploy_dnsregistrar.ts @@ -40,6 +40,12 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { } func.tags = ['DNSRegistrar'] -func.dependencies = ['registry', 'dnssec-oracle', 'OffchainDNSResolver', 'Root'] +func.dependencies = [ + 'registry', + 'dnssec-oracle', + 'OffchainDNSResolver', + 'Root', + 'setupRoot', +] export default func diff --git a/deploy/root/00_deploy_root.ts b/deploy/root/00_deploy_root.ts index d3d09e27..6b4ebf6d 100644 --- a/deploy/root/00_deploy_root.ts +++ b/deploy/root/00_deploy_root.ts @@ -2,9 +2,6 @@ import { ethers } from 'hardhat' import { DeployFunction } from 'hardhat-deploy/types' import { HardhatRuntimeEnvironment } from 'hardhat/types' -const ZERO_HASH = - '0x0000000000000000000000000000000000000000000000000000000000000000' - const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { const { getNamedAccounts, deployments, network } = hre const { deploy } = deployments @@ -22,42 +19,6 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { log: true, }) - const root = await ethers.getContract('Root') - - // const tx1 = await registry.setOwner(ZERO_HASH, root.address) - // console.log( - // `Setting owner of root node to root contract (tx: ${tx1.hash})...`, - // ) - // await tx1.wait() - - // const rootOwner = await root.owner() - - // switch (rootOwner) { - // case deployer: - // const tx2 = await root - // .connect(await ethers.getSigner(deployer)) - // .transferOwnership(owner) - // console.log( - // `Transferring root ownership to final owner (tx: ${tx2.hash})...`, - // ) - // await tx2.wait() - // case owner: - // if (!(await root.controllers(owner))) { - // const tx2 = await root - // .connect(await ethers.getSigner(owner)) - // .setController(owner, true) - // console.log( - // `Setting final owner as controller on root contract (tx: ${tx2.hash})...`, - // ) - // await tx2.wait() - // } - // break - // default: - // console.log( - // `WARNING: Root is owned by ${rootOwner}; cannot transfer to owner account`, - // ) - // } - return true }