Skip to content

Commit

Permalink
Merge pull request LedgerHQ#164 from LedgerHQ/flow
Browse files Browse the repository at this point in the history
Upgrade and fixes flow
  • Loading branch information
gre committed Mar 5, 2019
2 parents 1999972 + 99ce581 commit eecbf5b
Show file tree
Hide file tree
Showing 10 changed files with 351 additions and 251 deletions.
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -70,9 +70,9 @@
"eslint-config-prettier": "^2.9.0",
"eslint-plugin-flowtype": "^2.49.3",
"eslint-plugin-react": "^7.7.0",
"flow-bin": "^0.73.0",
"flow-bin": "^0.94.0",
"flow-copy-source": "^1.2.1",
"flow-typed": "^2.2.3",
"flow-typed": "^2.5.1",
"glob": "^7.1.2",
"jest": "^23.1.0",
"prettier": "^1.13.4",
Expand Down
6 changes: 4 additions & 2 deletions src/api/Fees.js
Expand Up @@ -10,8 +10,10 @@ export type Fees = {
[_: string]: number
};

export const getEstimatedFees = makeLRUCache(
async (currency: CryptoCurrency): Promise<Fees> => {
export const getEstimatedFees: (
currency: CryptoCurrency
) => Promise<Fees> = makeLRUCache(
async currency => {
const baseURL = blockchainBaseURL(currency);
invariant(baseURL, `Fees for ${currency.id} are not supported`);
const { data, status } = await network({
Expand Down

0 comments on commit eecbf5b

Please sign in to comment.