Skip to content

Commit

Permalink
Fixed getAvatar for unconfigured ENS names.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Oct 31, 2021
1 parent b145898 commit 1e1c93e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/providers/src.ts/base-provider.ts
Expand Up @@ -1747,6 +1747,7 @@ export class BaseProvider extends Provider implements EnsProvider {
} else {
// ENS name; forward lookup
resolver = await this.getResolver(nameOrAddress);
if (!resolver) { return null; }
}

const avatar = await resolver.getAvatar();
Expand Down

0 comments on commit 1e1c93e

Please sign in to comment.