Skip to content

Commit

Permalink
Fixed AbstractProvider lookupAddress bug (#4086).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Jun 1, 2023
1 parent d8e9586 commit 15ed2f5
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 15ed2f5

Please sign in to comment.