Skip to content

Commit ab85949

Browse files
committed
tests: up
1 parent a335658 commit ab85949

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/actions/ens/getEnsResolver.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,6 @@ test('invalid TLD', async () => {
119119
await expect(
120120
getEnsResolver(client, { name: 'vitalik.eth' }),
121121
).rejects.toThrowErrorMatchingInlineSnapshot(
122-
'[Error: vitalik.eth is not a valid ENS TLD (.linea.eth) for this chain.]',
122+
`[Error: vitalik.eth is not a valid ENS TLD (.linea.eth) for chain "Linea Mainnet" (id: 59144).]`,
123123
)
124124
})

src/actions/ens/getEnsResolver.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export async function getEnsResolver<chain extends Chain | undefined>(
8989
const tlds = chain?.ensTlds
9090
if (tlds && !tlds.some((tld) => name.endsWith(tld)))
9191
throw new Error(
92-
`${name} is not a valid ENS TLD (${tlds?.join(', ')}) for chain ${chain?.id}.`,
92+
`${name} is not a valid ENS TLD (${tlds?.join(', ')}) for chain "${chain.name}" (id: ${chain.id}).`,
9393
)
9494

9595
const [resolverAddress] = await getAction(

0 commit comments

Comments
 (0)