Skip to content

Commit

Permalink
tests: added test for gasless ENS-DNS resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Feb 2, 2024
1 parent 416de27 commit 6bf19c1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src.ts/_tests/test-providers-wildcard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand All @@ -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");
});
});

0 comments on commit 6bf19c1

Please sign in to comment.