Remove outdated comment

pull/2937/head
Hwee-Boon Yar 3 years ago
parent 9bce2d829f
commit 88b73ce573
  1. 1
      AlphaWallet/Activities/ViewModels/ActivitiesViewModel.swift
  2. 1
      AlphaWallet/TokenScriptClient/Models/AssetAttribute.swift

@ -116,7 +116,6 @@ struct ActivitiesViewModel {
} }
}) })
}.sorted { (object1, object2) -> Bool in }.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 { guard let date1 = ActivitiesViewModel.formatter.date(from: object1.date), let date2 = ActivitiesViewModel.formatter.date(from: object2.date) else {
return false return false
} }

@ -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] { func resolve(withTokenIdOrEvent tokenIdOrEvent: TokenIdOrEvent, userEntryValues: [AttributeId: String], server: RPCServer, account: Wallet, additionalValues: [AttributeId: AssetAttributeSyntaxValue], localRefs: [AttributeId: AssetInternalValue]) -> [AttributeId: AssetAttributeSyntaxValue] {
var attributeNameValues = [AttributeId: AssetAttributeSyntaxValue]() var attributeNameValues = [AttributeId: AssetAttributeSyntaxValue]()
let (tokenIdBased, userEntryBased, functionBased, eventBased) = splitAttributesByOrigin let (tokenIdBased, userEntryBased, functionBased, eventBased) = splitAttributesByOrigin
//TODO get rid of the forced unwrap
guard let callForAssetAttributeCoordinator = XMLHandler.callForAssetAttributeCoordinators?[server] else { guard let callForAssetAttributeCoordinator = XMLHandler.callForAssetAttributeCoordinators?[server] else {
return [:] return [:]
} }

Loading…
Cancel
Save