Merge pull request #1558 from AlphaWallet/fix-bug-in-detecting-spawnable-meetup-contracts

Fix: Detection of spawnable meetup contract for display
pull/1565/head
James Sangalli 5 years ago committed by GitHub
commit cb89f8d284
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      AlphaWallet/Market/ViewModels/ImportMagicTokenViewControllerViewModel.swift

@ -338,7 +338,7 @@ struct ImportMagicTokenViewControllerViewModel {
if let tokenHolder = tokenHolder, tokenHolder.isSpawnableMeetupContract {
//Not the best check, but we assume that even if the data is just partially available, we can show something
//TODO get rid of this. Do we even use "building" as spawable check anymore? Testing `is String` is wrong anyway. But probably harmless for now
if case .some(.subscribable(let subscribable)) = tokenHolder.values["building"]?.value, subscribable.value is String {
if case .some(.subscribable(let subscribable)) = tokenHolder.values["building"]?.value, subscribable.value?.stringValue != nil {
return false
} else {
return true

Loading…
Cancel
Save