diff --git a/Trust/Settings/Types/Constants.swift b/Trust/Settings/Types/Constants.swift index 1582e0324..0bcfa6033 100644 --- a/Trust/Settings/Types/Constants.swift +++ b/Trust/Settings/Types/Constants.swift @@ -21,7 +21,7 @@ public struct Constants { public static let dappsBrowserURL = "https://dapps.trustwalletapp.com" //FIFA hardcoded FIFA token address. Look for "//FIFA" for relevant changes - public static let fifaContractAddress = "0xE73b0F78cAfdD4108B6C4Cf0B4ed209FBce8A82B" + public static let fifaContractAddress = "0xd9161204f675200776a8f1BbCfAe5943cC6fe842" } public struct UnitConfiguration { diff --git a/Trust/Tokens/ViewModels/NewTokenViewModel.swift b/Trust/Tokens/ViewModels/NewTokenViewModel.swift index 29c02e54e..e5c6e0136 100644 --- a/Trust/Tokens/ViewModels/NewTokenViewModel.swift +++ b/Trust/Tokens/ViewModels/NewTokenViewModel.swift @@ -13,7 +13,7 @@ struct NewTokenViewModel { var balance = 0 if !stormBirdBalance.isEmpty { for i in 0...stormBirdBalance.count - 1 { - if Int(stormBirdBalance[i], radix: 16)! > 0 { + if stormBirdBalance[i] != "0x0000000000000000000000000000000000000000000000000000000000000000" { balance += 1 } }