tests: added test for gasless ENS-DNS resolution

This commit is contained in:
Richard Moore 2024-02-02 04:17:10 -05:00
parent 416de27589
commit 6bf19c1937

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