diff --git a/deploy/dnsregistrar/10_deploy_dnsregistrar.ts b/deploy/dnsregistrar/10_deploy_dnsregistrar.ts index fc8562a8..9bfa5840 100644 --- a/deploy/dnsregistrar/10_deploy_dnsregistrar.ts +++ b/deploy/dnsregistrar/10_deploy_dnsregistrar.ts @@ -32,7 +32,10 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { }) console.log(`Deployed DNSRegistrar to ${tx.address}`) - if (owner !== undefined && (await root.isOwner(owner))) { + if ( + owner !== undefined && + (await root.owner().toLowerCase()) === owner.toLowerCase() + ) { const tx2 = await root .connect(await ethers.getSigner(owner)) .setController(tx.address, true)