Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32532709
D9867.1767153593.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
739 B
Referenced Files
None
Subscribers
None
D9867.1767153593.diff
View Options
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 = <T: ?BaseUserInfo>(users: $ReadOnlyArray<T>): Promise<T[]> =>
+ baseGetENSNames(ensCache, users);
}
export { initENSCache, getENSNames };
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 31, 3:59 AM (22 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5871907
Default Alt Text
D9867.1767153593.diff (739 B)
Attached To
Mode
D9867: [Flow202][keyserver][skip-ci] [18/x] Fix Flow issues with baseGetENSNames.bind
Attached
Detach File
Event Timeline
Log In to Comment