From 05adf0e1b8740a0512901e1325599614ef17c6b8 Mon Sep 17 00:00:00 2001 From: Alexandre Chabrolin <9203826+chabroA@users.noreply.github.com> Date: Wed, 16 Aug 2023 16:09:44 +0200 Subject: [PATCH] update apps polyfill to use ethereum app for evm family --- libs/ledger-live-common/src/apps/polyfill.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libs/ledger-live-common/src/apps/polyfill.ts b/libs/ledger-live-common/src/apps/polyfill.ts index 247ddf0e218e..a230e65256ee 100644 --- a/libs/ledger-live-common/src/apps/polyfill.ts +++ b/libs/ledger-live-common/src/apps/polyfill.ts @@ -159,7 +159,12 @@ export const calculateDependencies = (): void => { listCryptoCurrencies(true, true).forEach((currency: CryptoCurrency) => { if (!currency.managerAppName) return; // no app for this currency - const family = findCryptoCurrencyById(currency.family); + /** + * For currencies from the evm family that use a specific app (other than the Ethereum app), + * the currency ID of the parent app is ethereum and not the family name. + */ + const parentCurrencyId = currency.family === "evm" ? "ethereum" : currency.family; + const family = findCryptoCurrencyById(parentCurrencyId); if (!family || !family.managerAppName) return; // no dep if (family.managerAppName === currency.managerAppName) return; // same app