diff --git a/Sources/BraveWallet/Crypto/Stores/NetworkStore.swift b/Sources/BraveWallet/Crypto/Stores/NetworkStore.swift index 9e43747ba908..adca6a2810bf 100644 --- a/Sources/BraveWallet/Crypto/Stores/NetworkStore.swift +++ b/Sources/BraveWallet/Crypto/Stores/NetworkStore.swift @@ -167,7 +167,7 @@ public class NetworkStore: ObservableObject, WalletObserverStore { self.isSwapSupported = await swapService.isSwapSupported(chain.chainId) } - @MainActor private func updateChainList() async { + @MainActor func updateChainList() async { // fetch all networks for all coin types self.allChains = await rpcService.allNetworksForSupportedCoins(respectTestnetPreference: false) diff --git a/Sources/BraveWallet/Settings/CustomNetworkListView.swift b/Sources/BraveWallet/Settings/CustomNetworkListView.swift index 4736dcf8d5d9..e8c3fcd7a2ce 100644 --- a/Sources/BraveWallet/Settings/CustomNetworkListView.swift +++ b/Sources/BraveWallet/Settings/CustomNetworkListView.swift @@ -138,6 +138,9 @@ struct CustomNetworkListView: View { } .navigationViewStyle(StackNavigationViewStyle()) } + .task { + await networkStore.updateChainList() + } } }