Page MenuHomePhorge

D9696.1765326156.diff
No OneTemporary

Size
809 B
Referenced Files
None
Subscribers
None

D9696.1765326156.diff

diff --git a/lib/components/ens-cache-provider.react.js b/lib/components/ens-cache-provider.react.js
--- a/lib/components/ens-cache-provider.react.js
+++ b/lib/components/ens-cache-provider.react.js
@@ -9,6 +9,8 @@
type GetENSNames,
} from '../utils/ens-helpers.js';
+type BaseUserInfo = { +username?: ?string, ... };
+
type ENSCacheContextType = {
+ensCache: ?ENSCache,
+getENSNames: ?GetENSNames,
@@ -31,7 +33,9 @@
return defaultContext;
}
const ensCache = new ENSCache(provider);
- const getENSNames: GetENSNames = baseGetENSNames.bind(null, ensCache);
+ const getENSNames: GetENSNames = <T: ?BaseUserInfo>(
+ users: $ReadOnlyArray<T>,
+ ): Promise<T[]> => baseGetENSNames(ensCache, users);
return { ensCache, getENSNames };
}, [provider]);
return (

File Metadata

Mime Type
text/plain
Expires
Wed, Dec 10, 12:22 AM (15 h, 28 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5859122
Default Alt Text
D9696.1765326156.diff (809 B)

Event Timeline