From 88b73ce57395ee79cd9f90345a45aefc909584a8 Mon Sep 17 00:00:00 2001 From: Hwee-Boon Yar Date: Fri, 2 Jul 2021 15:31:39 +0800 Subject: [PATCH] Remove outdated comment --- AlphaWallet/Activities/ViewModels/ActivitiesViewModel.swift | 1 - AlphaWallet/TokenScriptClient/Models/AssetAttribute.swift | 1 - 2 files changed, 2 deletions(-) diff --git a/AlphaWallet/Activities/ViewModels/ActivitiesViewModel.swift b/AlphaWallet/Activities/ViewModels/ActivitiesViewModel.swift index 6ec16d687..ebf0d58c9 100644 --- a/AlphaWallet/Activities/ViewModels/ActivitiesViewModel.swift +++ b/AlphaWallet/Activities/ViewModels/ActivitiesViewModel.swift @@ -116,7 +116,6 @@ struct ActivitiesViewModel { } }) }.sorted { (object1, object2) -> Bool in - //NOTE: Remove force unwrap to prevent crash guard let date1 = ActivitiesViewModel.formatter.date(from: object1.date), let date2 = ActivitiesViewModel.formatter.date(from: object2.date) else { return false } diff --git a/AlphaWallet/TokenScriptClient/Models/AssetAttribute.swift b/AlphaWallet/TokenScriptClient/Models/AssetAttribute.swift index fb4d1b64a..e21ffb51b 100644 --- a/AlphaWallet/TokenScriptClient/Models/AssetAttribute.swift +++ b/AlphaWallet/TokenScriptClient/Models/AssetAttribute.swift @@ -165,7 +165,6 @@ extension Dictionary where Key == AttributeId, Value == AssetAttribute { func resolve(withTokenIdOrEvent tokenIdOrEvent: TokenIdOrEvent, userEntryValues: [AttributeId: String], server: RPCServer, account: Wallet, additionalValues: [AttributeId: AssetAttributeSyntaxValue], localRefs: [AttributeId: AssetInternalValue]) -> [AttributeId: AssetAttributeSyntaxValue] { var attributeNameValues = [AttributeId: AssetAttributeSyntaxValue]() let (tokenIdBased, userEntryBased, functionBased, eventBased) = splitAttributesByOrigin - //TODO get rid of the forced unwrap guard let callForAssetAttributeCoordinator = XMLHandler.callForAssetAttributeCoordinators?[server] else { return [:] }