Page MenuHomePhorge

D7039.1768055058.diff
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

D7039.1768055058.diff

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<?string> {
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;
}

File Metadata

Mime Type
text/plain
Expires
Sat, Jan 10, 2:24 PM (10 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5915424
Default Alt Text
D7039.1768055058.diff (1 KB)

Event Timeline