From f81beab3dd014bf87f06ee0836fa7f4bbf915b0d Mon Sep 17 00:00:00 2001 From: Christian Mazakas <5543573+cmazakas@users.noreply.github.com> Date: Fri, 5 Jun 2026 07:54:48 -0700 Subject: [PATCH] [Polkadot] [Wallet] add Westend Asset Hub to supported test networks (#36997) We need to manually add Westend Asset Hub as a supported testnet to get it properly display as a testnet network. --- components/brave_wallet_ui/constants/types.ts | 2 ++ .../brave_wallet_ui/utils/local-storage-utils.test.ts | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/components/brave_wallet_ui/constants/types.ts b/components/brave_wallet_ui/constants/types.ts index c7ee0a05e0e..d501af6b052 100644 --- a/components/brave_wallet_ui/constants/types.ts +++ b/components/brave_wallet_ui/constants/types.ts @@ -704,6 +704,7 @@ export const SupportedTestNetworks = [ BraveWallet.Z_CASH_TESTNET, BraveWallet.CARDANO_TESTNET, BraveWallet.POLKADOT_TESTNET, + BraveWallet.POLKADOT_TESTNET_ASSET_HUB, ] export const SupportedTestNetworkEntityIds: EntityId[] = [ @@ -721,6 +722,7 @@ export const SupportedTestNetworkEntityIds: EntityId[] = [ BraveWallet.Z_CASH_TESTNET, BraveWallet.CARDANO_TESTNET, BraveWallet.POLKADOT_TESTNET, + BraveWallet.POLKADOT_TESTNET_ASSET_HUB, ] export const DAppSupportedCoinTypes = [ diff --git a/components/brave_wallet_ui/utils/local-storage-utils.test.ts b/components/brave_wallet_ui/utils/local-storage-utils.test.ts index 879c41625d9..801ae2b179b 100644 --- a/components/brave_wallet_ui/utils/local-storage-utils.test.ts +++ b/components/brave_wallet_ui/utils/local-storage-utils.test.ts @@ -68,6 +68,12 @@ const mockInitialFilteredOutNetworkKeys = [ coin: BraveWallet.CoinType.DOT, }) .toString(), + networkEntityAdapter + .selectId({ + chainId: BraveWallet.POLKADOT_TESTNET_ASSET_HUB, + coin: BraveWallet.CoinType.DOT, + }) + .toString(), networkEntityAdapter .selectId({ chainId: BraveWallet.LOCALHOST_CHAIN_ID,