From 001f8492212a5cc0a66fd8150d4e7c0766022a9a Mon Sep 17 00:00:00 2001 From: v1rtl Date: Mon, 2 Dec 2024 22:50:16 +0200 Subject: [PATCH] wip --- deploy/00_register_contracts.ts | 2 +- deploy/00_register_legacy.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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))