From dc4e6a0318e2f5b9bd03f3c137b7eab0aa472419 Mon Sep 17 00:00:00 2001 From: Kant Date: Mon, 18 Nov 2024 17:12:20 +0100 Subject: [PATCH] test: fix with solana testnet and devnet addition --- .../wallet-api-currencies-darwin.json | 18 ++++++++++++++++++ .../wallet-api-currencies-linux.json | 18 ++++++++++++++++++ .../packages/cryptoassets/src/abandonseed.ts | 2 ++ 3 files changed, 38 insertions(+) diff --git a/apps/ledger-live-desktop/tests/specs/services/wallet-api.spec.ts-snapshots/wallet-api-currencies-darwin.json b/apps/ledger-live-desktop/tests/specs/services/wallet-api.spec.ts-snapshots/wallet-api-currencies-darwin.json index b68c11c448b1..55fcfb2c8cb7 100644 --- a/apps/ledger-live-desktop/tests/specs/services/wallet-api.spec.ts-snapshots/wallet-api-currencies-darwin.json +++ b/apps/ledger-live-desktop/tests/specs/services/wallet-api.spec.ts-snapshots/wallet-api-currencies-darwin.json @@ -143,6 +143,24 @@ "color": "#000", "decimals": 9 }, + { + "type": "CryptoCurrency", + "id": "solana_testnet", + "ticker": "SOL", + "name": "Solana testnet", + "family": "solana", + "color": "#000", + "decimals": 9 + }, + { + "type": "CryptoCurrency", + "id": "solana_devnet", + "ticker": "SOL", + "name": "Solana devnet", + "family": "solana", + "color": "#000", + "decimals": 9 + }, { "type": "CryptoCurrency", "id": "ripple", diff --git a/apps/ledger-live-desktop/tests/specs/services/wallet-api.spec.ts-snapshots/wallet-api-currencies-linux.json b/apps/ledger-live-desktop/tests/specs/services/wallet-api.spec.ts-snapshots/wallet-api-currencies-linux.json index b68c11c448b1..55fcfb2c8cb7 100644 --- a/apps/ledger-live-desktop/tests/specs/services/wallet-api.spec.ts-snapshots/wallet-api-currencies-linux.json +++ b/apps/ledger-live-desktop/tests/specs/services/wallet-api.spec.ts-snapshots/wallet-api-currencies-linux.json @@ -143,6 +143,24 @@ "color": "#000", "decimals": 9 }, + { + "type": "CryptoCurrency", + "id": "solana_testnet", + "ticker": "SOL", + "name": "Solana testnet", + "family": "solana", + "color": "#000", + "decimals": 9 + }, + { + "type": "CryptoCurrency", + "id": "solana_devnet", + "ticker": "SOL", + "name": "Solana devnet", + "family": "solana", + "color": "#000", + "decimals": 9 + }, { "type": "CryptoCurrency", "id": "ripple", diff --git a/libs/ledgerjs/packages/cryptoassets/src/abandonseed.ts b/libs/ledgerjs/packages/cryptoassets/src/abandonseed.ts index 0eed424a6c34..99838bab869b 100644 --- a/libs/ledgerjs/packages/cryptoassets/src/abandonseed.ts +++ b/libs/ledgerjs/packages/cryptoassets/src/abandonseed.ts @@ -42,6 +42,8 @@ const abandonSeedAddresses: Partial> = { zencash: "zngWJRgpBa45KUeRuCmdMsqti4ohhe9sVwC", bsc: EVM_DEAD_ADDRESS, solana: "GjJyeC1r2RgkuoCWMyPYkCWSGSGLcz266EaAkLA27AhL", + solana_testnet: "GjJyeC1r2RgkuoCWMyPYkCWSGSGLcz266EaAkLA27AhL", + solana_devnet: "GjJyeC1r2RgkuoCWMyPYkCWSGSGLcz266EaAkLA27AhL", polygon: EVM_DEAD_ADDRESS, crypto_org: "cro1r3ywhs4ng96dnm9zkc5y3etl7tps5cvvz26lr4", crypto_org_croeseid: "cro1r3ywhs4ng96dnm9zkc5y3etl7tps5cvvz26lr4",