From 15ed2f5b32084527961332481c9442a313036a01 Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Thu, 1 Jun 2023 17:51:21 -0400 Subject: [PATCH] Fixed AbstractProvider lookupAddress bug (#4086). --- src.ts/providers/abstract-provider.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src.ts/providers/abstract-provider.ts b/src.ts/providers/abstract-provider.ts index ab2307895..30587bd74 100644 --- a/src.ts/providers/abstract-provider.ts +++ b/src.ts/providers/abstract-provider.ts @@ -15,7 +15,7 @@ // of Signer/ENS name to address so we can sync respond to listenerCount. import { getAddress, resolveAddress } from "../address/index.js"; -import { ZeroHash } from "../constants/index.js"; +import { ZeroAddress } from "../constants/index.js"; import { Contract } from "../contract/index.js"; import { namehash } from "../hash/index.js"; import { Transaction } from "../transaction/index.js"; @@ -1140,7 +1140,7 @@ export class AbstractProvider implements Provider { ], this); const resolver = await ensContract.resolver(node); - if (resolver == null || resolver === ZeroHash) { return null; } + if (resolver == null || resolver === ZeroAddress) { return null; } const resolverContract = new Contract(resolver, [ "function name(bytes32) view returns (string)"