diff --git a/lib/utils/ens-cache.js b/lib/utils/ens-cache.js --- a/lib/utils/ens-cache.js +++ b/lib/utils/ens-cache.js @@ -72,7 +72,7 @@ getNameForAddress(ethAddress: string): Promise { const normalizedETHAddress = normalizeETHAddress(ethAddress); - const cacheResult = this.getCachedEntryForAddress(normalizedETHAddress); + const cacheResult = this.getCachedNameEntryForAddress(normalizedETHAddress); if (cacheResult) { return Promise.resolve(cacheResult.normalizedENSName); } @@ -120,7 +120,7 @@ })(); } - getCachedEntryForAddress(ethAddress: string): ?ENSNameQueryCacheEntry { + getCachedNameEntryForAddress(ethAddress: string): ?ENSNameQueryCacheEntry { const normalizedETHAddress = normalizeETHAddress(ethAddress); const cacheResult = this.nameQueryCache.get(normalizedETHAddress); @@ -138,7 +138,7 @@ } getCachedNameForAddress(ethAddress: string): ?string { - const cacheResult = this.getCachedEntryForAddress(ethAddress); + const cacheResult = this.getCachedNameEntryForAddress(ethAddress); if (!cacheResult) { return undefined; } @@ -157,7 +157,7 @@ return Promise.resolve(undefined); } - const cacheResult = this.getCachedEntryForName(normalizedENSName); + const cacheResult = this.getCachedAddressEntryForName(normalizedENSName); if (cacheResult) { return Promise.resolve(cacheResult.normalizedETHAddress); } @@ -198,7 +198,7 @@ })(); } - getCachedEntryForName(ensName: string): ?ENSAddressQueryCacheEntry { + getCachedAddressEntryForName(ensName: string): ?ENSAddressQueryCacheEntry { const normalizedENSName = normalizeENSName(ensName); if (normalizedENSName !== ensName) { return undefined; @@ -219,7 +219,7 @@ } getCachedAddressForName(ensName: string): ?string { - const cacheResult = this.getCachedEntryForName(ensName); + const cacheResult = this.getCachedAddressEntryForName(ensName); if (!cacheResult) { return undefined; }