Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
talentlessguy committed Dec 2, 2024
1 parent fac046b commit 001f849
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion deploy/00_register_contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down
6 changes: 3 additions & 3 deletions deploy/00_register_legacy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -409,13 +409,13 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
{ label, registrant, secret, resolver, addr }: ReturnType<typeof makeData>,
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 })
Expand All @@ -430,7 +430,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
{ label, registrant, secret, resolver, addr, duration }: ReturnType<typeof makeData>,
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))

Expand Down

0 comments on commit 001f849

Please sign in to comment.