diff --git a/keyserver/src/utils/ens-cache.js b/keyserver/src/utils/ens-cache.js --- a/keyserver/src/utils/ens-cache.js +++ b/keyserver/src/utils/ens-cache.js @@ -10,6 +10,7 @@ } from 'lib/utils/ens-helpers.js'; type AlchemyConfig = { +key: string }; +type BaseUserInfo = { +username?: ?string, ... }; let getENSNames: ?GetENSNames; async function initENSCache() { @@ -23,7 +24,8 @@ } const provider = new ethers.providers.AlchemyProvider('mainnet', alchemyKey); const ensCache = new ENSCache(provider); - getENSNames = baseGetENSNames.bind(null, ensCache); + getENSNames = (users: $ReadOnlyArray): Promise => + baseGetENSNames(ensCache, users); } export { initENSCache, getENSNames };