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 = ( + users: $ReadOnlyArray, + ): Promise => baseGetENSNames(ensCache, users); return { ensCache, getENSNames }; }, [provider]); return (