Skip to content

Commit b993f7c

Browse files
committed
Fixed getContentHash (ethers-io#3819).
1 parent 51e72b9 commit b993f7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src.ts/providers/ens-resolver.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export class EnsResolver {
148148
"function addr(bytes32) view returns (address)",
149149
"function addr(bytes32, uint) view returns (address)",
150150
"function text(bytes32, string) view returns (string)",
151-
"function contenthash() view returns (bytes)",
151+
"function contenthash(bytes32) view returns (bytes)",
152152
], provider);
153153

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

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

0 commit comments

Comments
 (0)