diff --git a/packages/shared/lib/core/network/constants/official-node-urls.constant.ts b/packages/shared/lib/core/network/constants/official-node-urls.constant.ts index 83e242cd659..c8a46703c92 100644 --- a/packages/shared/lib/core/network/constants/official-node-urls.constant.ts +++ b/packages/shared/lib/core/network/constants/official-node-urls.constant.ts @@ -4,6 +4,6 @@ export const OFFICIAL_NODE_URLS: Readonly<{ [key in NetworkId]?: string[] }> = { [NetworkId.Iota]: ['https://api.stardust-mainnet.iotaledger.net', 'https://iota-node.tanglebay.com'], [NetworkId.IotaTestnet]: ['https://api.testnet.iotaledger.net'], [NetworkId.IotaAlphanet]: ['https://api.iota-alphanet.iotaledger.net'], - [NetworkId.Shimmer]: ['https://api.shimmer.network', 'https://shimmer-node.tanglebay.com'], + [NetworkId.Shimmer]: ['https://api.shimmer.network'], [NetworkId.ShimmerTestnet]: ['https://api.testnet.shimmer.network'], } diff --git a/packages/shared/lib/core/network/tests/network.test.ts b/packages/shared/lib/core/network/tests/network.test.ts index 972075b9895..5522e05cdd7 100644 --- a/packages/shared/lib/core/network/tests/network.test.ts +++ b/packages/shared/lib/core/network/tests/network.test.ts @@ -24,7 +24,7 @@ describe('File: network.ts', () => { [NetworkId.Iota]: ['https://api.stardust-mainnet.iotaledger.net', 'https://iota-node.tanglebay.com'], [NetworkId.IotaTestnet]: ['https://api.testnet.iotaledger.net'], [NetworkId.IotaAlphanet]: ['https://api.iota-alphanet.iotaledger.net'], - [NetworkId.Shimmer]: ['https://api.shimmer.network', 'https://shimmer-node.tanglebay.com'], + [NetworkId.Shimmer]: ['https://api.shimmer.network'], [NetworkId.ShimmerTestnet]: ['https://api.testnet.shimmer.network'], } diff --git a/packages/shared/lib/core/profile/actions/profiles/checkAndMigrateProfiles.ts b/packages/shared/lib/core/profile/actions/profiles/checkAndMigrateProfiles.ts index e34742543ac..0d61dc3f341 100644 --- a/packages/shared/lib/core/profile/actions/profiles/checkAndMigrateProfiles.ts +++ b/packages/shared/lib/core/profile/actions/profiles/checkAndMigrateProfiles.ts @@ -4,6 +4,7 @@ import { DEFAULT_CHAIN_CONFIGURATIONS, DEFAULT_MAX_PARALLEL_API_REQUESTS, getDefaultPersistedNetwork, + getOfficialNodes, IIscpChainMetadata, NetworkId, } from '@core/network' @@ -75,6 +76,7 @@ const persistedProfileMigrationsMap: Record node.url !== DEPRECATED_NODE_URL) + if (!existingProfile.clientOptions.nodes?.length) { + existingProfile.clientOptions.nodes = OFFICIAL_NODES + } + const primaryNode = existingProfile.clientOptions.primaryNode + if (primaryNode?.url === DEPRECATED_NODE_URL) { + existingProfile.clientOptions.primaryNode = undefined + } + saveProfile(existingProfile) +} diff --git a/packages/shared/lib/core/profile/constants/profile-version.constant.ts b/packages/shared/lib/core/profile/constants/profile-version.constant.ts index b306ad05f47..ac9222764f1 100644 --- a/packages/shared/lib/core/profile/constants/profile-version.constant.ts +++ b/packages/shared/lib/core/profile/constants/profile-version.constant.ts @@ -1 +1 @@ -export const PROFILE_VERSION = 19 +export const PROFILE_VERSION = 20