Skip to content

Commit

Permalink
update apps polyfill to use ethereum app for evm family
Browse files Browse the repository at this point in the history
  • Loading branch information
chabroA committed Aug 17, 2023
1 parent 82c85be commit 7028960
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion libs/ledger-live-common/src/apps/polyfill.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7028960

Please sign in to comment.