Skip to content

Commit

Permalink
Fixed AbstractProvider lookupAddress bug (ethers-io#4086).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo authored and Woodpile37 committed Jan 14, 2024
1 parent 4313f57 commit f597b65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src.ts/providers/abstract-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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)"
Expand Down

0 comments on commit f597b65

Please sign in to comment.