diff --git a/deploy/00_register_contracts.ts b/deploy/00_register_contracts.ts index 00611ebbf..c0b336e00 100644 --- a/deploy/00_register_contracts.ts +++ b/deploy/00_register_contracts.ts @@ -3,7 +3,7 @@ /* eslint-disable no-await-in-loop */ import { DeployFunction } from 'hardhat-deploy/types' import { HardhatRuntimeEnvironment } from 'hardhat/types' -import { namehash } from 'viem' +import { Address, namehash } from 'viem' import { getContract } from './utils/viem-hardhat' diff --git a/deploy/00_register_legacy.ts b/deploy/00_register_legacy.ts index 4269d819c..cc5b41d67 100644 --- a/deploy/00_register_legacy.ts +++ b/deploy/00_register_legacy.ts @@ -409,13 +409,13 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { { label, registrant, secret, resolver, addr }: ReturnType, index: number, ) => { - const commitment = await controller.makeCommitmentWithConfig( + const commitment = await controller.write.makeCommitmentWithConfig([ label, registrant, secret, resolver, addr, - ) + ]) const _controller = controller.connect(await ethers.getSigner(registrant)) const commitTx = await _controller.commit(commitment, { nonce: nonce + index }) @@ -430,7 +430,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { { label, registrant, secret, resolver, addr, duration }: ReturnType, index: number, ) => { - const price = await controller.rentPrice(label, duration) + const price = await controller.read.rentPrice(label, duration) const _controller = controller.connect(await ethers.getSigner(registrant))