From 98e1393552fec1b7f667388160fc7e7122855758 Mon Sep 17 00:00:00 2001 From: tate Date: Tue, 30 Jan 2024 10:28:00 +1100 Subject: [PATCH] remove unused test code --- .../src/functions/dns/importDnsName.test.ts | 23 ------------------- 1 file changed, 23 deletions(-) diff --git a/packages/ensjs/src/functions/dns/importDnsName.test.ts b/packages/ensjs/src/functions/dns/importDnsName.test.ts index 19057085..f2c280be 100644 --- a/packages/ensjs/src/functions/dns/importDnsName.test.ts +++ b/packages/ensjs/src/functions/dns/importDnsName.test.ts @@ -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, @@ -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,