Skip to content

Commit

Permalink
Fixed getContentHash (ethers-io#3819).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo authored and Woodpile37 committed Jan 14, 2024
1 parent 266b036 commit 2b729ea
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 2b729ea

Please sign in to comment.