Skip to content

Commit

Permalink
fix wrong import
Browse files Browse the repository at this point in the history
  • Loading branch information
talentlessguy committed Jun 13, 2024
1 parent 128f77e commit 29103ab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/test-utils/ens.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const { utils, BigNumber: BN } = ethers
const packet = require('dns-packet')

const labelhash = (label) => utils.keccak256(utils.toUtf8Bytes(label))
const { namehash } = require('viem/ens').hash
const { namehash } = require('viem/ens')
function encodeName(name) {
return '0x' + packet.name.encode(name).toString('hex')
}
Expand Down
2 changes: 1 addition & 1 deletion test/wrapper/BytesUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const packet = require('dns-packet')
const { expect } = require('chai')
const { ethers } = require('hardhat')
const { utils, BigNumber: BN } = ethers
const { namehash } = require('viem/ens').hash
const { namehash } = require('viem/ens')

const NULL_HASH =
'0x0000000000000000000000000000000000000000000000000000000000000000'
Expand Down
2 changes: 1 addition & 1 deletion test/wrapper/ERC1155.behaviour.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Copyright (c) 2016-2020 zOS Global Limited
// Portions Copyright (c) 2021 Nick Johnson

const { namehash } = require('viem/ens').hash
const { namehash } = require('viem/ens')
const { BN, constants, expectEvent } = require('@openzeppelin/test-helpers')
const { ZERO_ADDRESS } = constants
const { ethers } = require('hardhat')
Expand Down

0 comments on commit 29103ab

Please sign in to comment.