-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6bf59d2
commit 08e448e
Showing
3 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
diff --git a/node_modules/@ledgerhq/hw-app-eth/lib/services/ledger/contracts.js b/node_modules/@ledgerhq/hw-app-eth/lib/services/ledger/contracts.js | ||
index 713d3a3..79f8f75 100644 | ||
--- a/node_modules/@ledgerhq/hw-app-eth/lib/services/ledger/contracts.js | ||
+++ b/node_modules/@ledgerhq/hw-app-eth/lib/services/ledger/contracts.js | ||
@@ -25,7 +25,7 @@ const loadInfosForContractMethod = (contractAddress, selector, chainId, userLoad | ||
if (pluginBaseURL) { | ||
const url = `${pluginBaseURL}/plugins/ethereum.json`; | ||
data = yield axios_1.default | ||
- .get(`${pluginBaseURL}/plugins/ethereum.json`) | ||
+ .get(`${pluginBaseURL}/plugins/ethereum.json`, { timeout: 5000 }) | ||
.then(r => r.data) | ||
.catch(e => { | ||
(0, logs_1.log)("error", "could not fetch from " + url + ": " + String(e)); | ||
diff --git a/node_modules/@ledgerhq/hw-app-eth/lib/services/ledger/erc20.js b/node_modules/@ledgerhq/hw-app-eth/lib/services/ledger/erc20.js | ||
index 8fdedf8..201f1ae 100644 | ||
--- a/node_modules/@ledgerhq/hw-app-eth/lib/services/ledger/erc20.js | ||
+++ b/node_modules/@ledgerhq/hw-app-eth/lib/services/ledger/erc20.js | ||
@@ -27,7 +27,7 @@ const findERC20SignaturesInfo = (userLoadConfig, chainId) => __awaiter(void 0, v | ||
return null; | ||
const url = `${cryptoassetsBaseURL}/evm/${chainId}/erc20-signatures.json`; | ||
const blob = yield axios_1.default | ||
- .get(url) | ||
+ .get(url, { timeout: 5000 }) | ||
.then(({ data }) => { | ||
if (!data || typeof data !== "string") { | ||
throw new Error(`ERC20 signatures for chainId ${chainId} file is malformed ${url}`); |