diff --git a/Gem/Assets/ViewModels/AddTokenViewModel.swift b/Gem/Assets/ViewModels/AddTokenViewModel.swift index 97a27f27..8ea40334 100644 --- a/Gem/Assets/ViewModels/AddTokenViewModel.swift +++ b/Gem/Assets/ViewModels/AddTokenViewModel.swift @@ -25,15 +25,15 @@ class AddTokenViewModel: ObservableObject { self.address = address self.chain = chain } - + var title: String { Localized.Wallet.AddToken.title } - + var defaultChain: Chain? { chains.first } - + var chains: [Chain] { AssetConfiguration.supportedChainsWithTokens .asSet() @@ -45,7 +45,7 @@ class AddTokenViewModel: ObservableObject { } } -// MARK: - +// MARK: - State Logic extension AddTokenViewModel { func fetch(tokenId: String) async throws { diff --git a/Gem/Settings/Scenes/ChainListSettingsScene.swift b/Gem/Settings/Scenes/ChainListSettingsScene.swift index e3659833..863d7477 100644 --- a/Gem/Settings/Scenes/ChainListSettingsScene.swift +++ b/Gem/Settings/Scenes/ChainListSettingsScene.swift @@ -9,7 +9,7 @@ import Style struct ChainListSettingsScene: View { @Environment(\.nodeService) private var nodeService - var model = ChainListSettingsViewModel() + let model = ChainListSettingsViewModel() var body: some View { SearchableListView(