From 03b4775b799de9e6cad9fb54da3872243c4acd3d Mon Sep 17 00:00:00 2001 From: Nick Johnson Date: Wed, 17 Jan 2024 14:27:12 +0000 Subject: [PATCH] Use owner instead of isOwner --- deploy/dnsregistrar/10_deploy_dnsregistrar.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)