2022-09-16 05:58:45 +03:00
|
|
|
"use strict";
|
|
|
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
|
|
};
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
const assert_1 = __importDefault(require("assert"));
|
|
|
|
const create_provider_js_1 = require("./create-provider.js");
|
2023-02-02 12:05:47 +03:00
|
|
|
(0, create_provider_js_1.setupProviders)();
|
2022-09-16 05:58:45 +03:00
|
|
|
describe("Test EIP-2544 ENS wildcards", function () {
|
2022-10-20 12:03:32 +03:00
|
|
|
const provider = (0, create_provider_js_1.connect)("goerli");
|
2022-09-16 05:58:45 +03:00
|
|
|
it("Resolves recursively", async function () {
|
|
|
|
const resolver = await provider.getResolver("ricmoose.hatch.eth");
|
|
|
|
assert_1.default.ok(resolver, "failed to get resolver");
|
2022-10-20 12:03:32 +03:00
|
|
|
assert_1.default.equal(resolver.address, "0x15abA1fa74Bfdecd63A71218DC632d4328Db8168", "address");
|
2022-09-16 05:58:45 +03:00
|
|
|
assert_1.default.equal(await resolver.supportsWildcard(), true, "supportsWildcard()");
|
|
|
|
// Test pass-through avatar
|
|
|
|
assert_1.default.equal(await resolver.getAvatar(), "https:/\/static.ricmoo.com/uploads/profile-06cb9c3031c9.jpg", "getAvatar()");
|
2022-10-20 12:03:32 +03:00
|
|
|
assert_1.default.equal(await resolver.getAddress(), "0x4B711A377B1b3534749FBe5e59Bcf7F94d92EA98", "getAddress()");
|
2022-09-16 05:58:45 +03:00
|
|
|
});
|
|
|
|
});
|
|
|
|
//# sourceMappingURL=test-providers-wildcard.js.map
|