Skip to content

Commit

Permalink
Use owner instead of isOwner
Browse files Browse the repository at this point in the history
  • Loading branch information
Arachnid committed Jan 17, 2024
1 parent 7d091bd commit 03b4775
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion deploy/dnsregistrar/10_deploy_dnsregistrar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 03b4775

Please sign in to comment.