forgot the resolver!
This commit is contained in:
parent
7dec704133
commit
56751c8d41
@ -188,6 +188,7 @@ export class EnsResolver {
|
||||
"function addr(bytes32, uint) view returns (bytes)",
|
||||
"function text(bytes32, string) view returns (string)",
|
||||
"function contenthash(bytes32) view returns (bytes)",
|
||||
"function name(bytes32) view returns (string)",
|
||||
], provider);
|
||||
|
||||
}
|
||||
@ -313,6 +314,14 @@ export class EnsResolver {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Resolves to the ENSIP-3 name record for %%key%%, or ``null``
|
||||
* if unconfigured.
|
||||
*/
|
||||
async getName(): Promise<null | string> {
|
||||
return this.#fetch("name(bytes32)");
|
||||
}
|
||||
|
||||
/**
|
||||
* Resolves to the EIP-634 text record for %%key%%, or ``null``
|
||||
* if unconfigured.
|
||||
|
Loading…
Reference in New Issue
Block a user