Skip to content

Commit

Permalink
Fixed getContentHash (#3819).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Feb 23, 2023
1 parent 51e72b9 commit b993f7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src.ts/providers/ens-resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export class EnsResolver {
"function addr(bytes32) view returns (address)",
"function addr(bytes32, uint) view returns (address)",
"function text(bytes32, string) view returns (string)",
"function contenthash() view returns (bytes)",
"function contenthash(bytes32) view returns (bytes)",
], provider);

}
Expand Down Expand Up @@ -281,7 +281,7 @@ export class EnsResolver {
*/
async getContentHash(): Promise<null | string> {
// keccak256("contenthash()")
const data = await this.#fetch("contenthash()");
const data = await this.#fetch("contenthash(bytes32)");

// No contenthash
if (data == null || data === "0x") { return null; }
Expand Down

0 comments on commit b993f7c

Please sign in to comment.