From 6bf19c19370b27271c677de967e5cdef95231b8b Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Fri, 2 Feb 2024 04:17:10 -0500 Subject: [PATCH] tests: added test for gasless ENS-DNS resolution --- src.ts/_tests/test-providers-wildcard.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src.ts/_tests/test-providers-wildcard.ts b/src.ts/_tests/test-providers-wildcard.ts index 8cc98fce1..182ad36a1 100644 --- a/src.ts/_tests/test-providers-wildcard.ts +++ b/src.ts/_tests/test-providers-wildcard.ts @@ -8,6 +8,8 @@ describe("Test EIP-2544 ENS wildcards", function() { const provider = connect("goerli"); it("Resolves recursively", async function() { + this.timeout(10000); + const resolver = await provider.getResolver("ricmoose.hatch.eth"); assert.ok(resolver, "failed to get resolver"); @@ -20,3 +22,13 @@ describe("Test EIP-2544 ENS wildcards", function() { assert.equal(await resolver.getAddress(), "0x4B711A377B1b3534749FBe5e59Bcf7F94d92EA98", "getAddress()"); }); }); + +describe("Test ENS-DNS gasless resolver", function() { + it("Resolved almonit.org", async function() { + this.timeout(10000); + + const provider = connect("mainnet"); + const addr = await provider.resolveName("almonit.org"); + assert.equal(addr, "0x0D59d0f7DcC0fBF0A3305cE0261863aAf7Ab685c", "addr"); + }); +});