Skip to content

Commit

Permalink
fix: change validator and delegation, need to fix old account already…
Browse files Browse the repository at this point in the history
… delegate
  • Loading branch information
qperrot committed Nov 25, 2024
1 parent 3c79da4 commit feb8497
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,20 @@ 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 {
const srURL = explorerView && getAddressExplorer(explorerView, address);
if (srURL) openURL(srURL);
}
},
[currencyName, explorerView, ledgerValidatorUrl],
[currencyID, explorerView, ledgerValidatorUrl],
);
return (
<StyledValidatorRow
Expand Down
2 changes: 1 addition & 1 deletion libs/coin-modules/coin-cosmos/src/chain/CryptoOrg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class CryptoOrg extends CosmosBase {
this.stakingDocUrl = "";
this.unbondingPeriod = 28;
this.prefix = "cro";
this.validatorPrefix = `${this.prefix}valoper`;
this.validatorPrefix = `${this.prefix}cncl`;
}
}

Expand Down
4 changes: 2 additions & 2 deletions libs/ledger-live-common/src/currencies/mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -560,8 +560,8 @@ export const CURRENCIES_LIST: CryptoCurrency[] = [
],
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",
},
],
},
Expand Down
2 changes: 0 additions & 2 deletions libs/ledger-live-common/src/generated/account.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import crypto_org from "../families/crypto_org/account";
import bitcoin from "@ledgerhq/coin-bitcoin/account";
import cardano from "@ledgerhq/coin-cardano/account";
import icon from "@ledgerhq/coin-icon/account";
import near from "@ledgerhq/coin-near/account";
import vechain from "@ledgerhq/coin-vechain/account";

export default {
crypto_org,
bitcoin,
cardano,
icon,
Expand Down
2 changes: 0 additions & 2 deletions libs/ledger-live-common/src/generated/cli-transaction.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import celo from "../families/celo/cli-transaction";
import crypto_org from "../families/crypto_org/cli-transaction";
import { cliTools as algorand } from "../families/algorand/setup";
import { cliTools as bitcoin } from "../families/bitcoin/setup";
import { cliTools as cardano } from "../families/cardano/setup";
Expand All @@ -22,7 +21,6 @@ import { cliTools as xrp } from "../families/xrp/setup";

export default {
celo,
crypto_org,
algorand,
bitcoin,
cardano,
Expand Down
4 changes: 2 additions & 2 deletions libs/ledgerjs/packages/cryptoassets/src/currencies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3158,8 +3158,8 @@ export const cryptocurrenciesById: Record<CryptoCurrencyId, CryptoCurrency> = {
],
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",
},
],
},
Expand Down

0 comments on commit feb8497

Please sign in to comment.