Skip to content

Commit

Permalink
remove unused test code
Browse files Browse the repository at this point in the history
  • Loading branch information
TateB committed Jan 29, 2024
1 parent 0a4d830 commit 98e1393
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions packages/ensjs/src/functions/dns/importDnsName.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,6 @@ beforeAll(async () => {
beforeEach(async () => {
snapshot = await testClient.snapshot()

// const tx = await walletClient.writeContract({
// account: accounts[1],
// address: deploymentAddresses.Root,
// abi: parseAbi([
// 'function setSubnodeOwner(bytes32 label, address owner) external',
// ] as const),
// functionName: 'setSubnodeOwner',
// args: [labelhash('xyz'), deploymentAddresses.DNSRegistrar],
// })
// await waitForTransaction(tx)

await testClient.impersonateAccount({ address })
await testClient.setBalance({
address,
Expand Down Expand Up @@ -116,18 +105,6 @@ it('should import a DNS name with an address, using a custom resolver', async ()

const resolverAddress = deploymentAddresses.PublicResolver

const approveTx = await walletClient.writeContract({
account: address,
address: resolverAddress,
abi: parseAbi([
'function setApprovalForAll(address operator, bool approved) external',
] as const),
functionName: 'setApprovalForAll',
args: [deploymentAddresses.DNSRegistrar, true],
})
const approveReceipt = await waitForTransaction(approveTx)
expect(approveReceipt.status).toBe('success')

const tx = await importDnsName(walletClient, {
name,
address,
Expand Down

0 comments on commit 98e1393

Please sign in to comment.