From feb8497e9c4fb8105ceea152f593bb403df9badb Mon Sep 17 00:00:00 2001 From: qperrot Date: Mon, 25 Nov 2024 14:10:12 +0100 Subject: [PATCH] fix: change validator and delegation, need to fix old account already delegate --- .../cosmos/shared/components/CosmosFamilyValidatorRow.tsx | 6 +++--- libs/coin-modules/coin-cosmos/src/chain/CryptoOrg.ts | 2 +- libs/ledger-live-common/src/currencies/mock.ts | 4 ++-- libs/ledger-live-common/src/generated/account.ts | 2 -- libs/ledger-live-common/src/generated/cli-transaction.ts | 2 -- libs/ledgerjs/packages/cryptoassets/src/currencies.ts | 4 ++-- 6 files changed, 8 insertions(+), 12 deletions(-) diff --git a/apps/ledger-live-desktop/src/renderer/families/cosmos/shared/components/CosmosFamilyValidatorRow.tsx b/apps/ledger-live-desktop/src/renderer/families/cosmos/shared/components/CosmosFamilyValidatorRow.tsx index 22597bcdb259..5aed436c8858 100644 --- a/apps/ledger-live-desktop/src/renderer/families/cosmos/shared/components/CosmosFamilyValidatorRow.tsx +++ b/apps/ledger-live-desktop/src/renderer/families/cosmos/shared/components/CosmosFamilyValidatorRow.tsx @@ -25,12 +25,12 @@ type Props = { }; function CosmosFamilyValidatorRow({ validator, active, onClick, unit, currency }: Props) { const explorerView = getDefaultExplorerView(currency); - const currencyName = currency.name.toLowerCase(); + const currencyID = currency.id; const ledgerValidatorUrl = useLocalizedUrl(urls.ledgerValidator); const onExternalLink = useCallback( (address: string) => { - const ledgerValidator = cryptoFactory(currencyName).ledgerValidator; + const ledgerValidator = cryptoFactory(currencyID).ledgerValidator; if (address === ledgerValidator) { openURL(ledgerValidatorUrl); } else { @@ -38,7 +38,7 @@ function CosmosFamilyValidatorRow({ validator, active, onClick, unit, currency } if (srURL) openURL(srURL); } }, - [currencyName, explorerView, ledgerValidatorUrl], + [currencyID, explorerView, ledgerValidatorUrl], ); return ( = { ], explorerViews: [ { - tx: "https://cronos-pos.org/explorer/tx/$hash", - address: "https://cronos-pos.org/explorer/account/$address", + tx: "https://www.mintscan.io/crypto-org/tx/$hash", + address: "https://www.mintscan.io/crypto-org/validators/$address", }, ], },