diff --git a/packages/ensjs/src/functions/public/ccip.test.ts b/packages/ensjs/src/functions/public/ccip.test.ts index 8f01b4cf..41b041f7 100644 --- a/packages/ensjs/src/functions/public/ccip.test.ts +++ b/packages/ensjs/src/functions/public/ccip.test.ts @@ -23,11 +23,9 @@ describe('CCIP', () => { it('should return records from a ccip-read name', async () => { const result = await getRecords(goerliPublicClient, { name: '1.offchainexample.eth', - records: { - texts: ['email', 'description'], - contentHash: true, - coins: ['ltc', '60'], - }, + texts: ['email', 'description'], + contentHash: true, + coins: ['ltc', '60'], }) expect(result).toMatchInlineSnapshot(` { @@ -64,13 +62,10 @@ describe('CCIP', () => { it('should return records from a ccip-read name with incompliant resolver', async () => { const result = await getRecords(mainnetPublicClient, { name: 'alisha.beam.eco', - records: { - texts: ['email', 'description'], - contentHash: true, - coins: ['ltc', '60'], - }, + texts: ['email', 'description'], + contentHash: true, + coins: ['ltc', '60'], }) - if (!result) throw new Error('No result') expect(result).toMatchInlineSnapshot(` { "coins": [ diff --git a/packages/ensjs/src/functions/wallet/setRecords.test.ts b/packages/ensjs/src/functions/wallet/setRecords.test.ts index a5e76a56..7415e51c 100644 --- a/packages/ensjs/src/functions/wallet/setRecords.test.ts +++ b/packages/ensjs/src/functions/wallet/setRecords.test.ts @@ -68,11 +68,9 @@ it('should return a transaction to the resolver and set successfully', async () const records = await getRecords(publicClient, { name: 'test123.eth', - records: { - coins: ['etcLegacy'], - texts: ['foo'], - abi: true, - }, + coins: ['etcLegacy'], + texts: ['foo'], + abi: true, }) expect(records.abi!.abi).toStrictEqual(dummyABI) expect(records.coins).toMatchInlineSnapshot(`