diff --git a/Cosmostation/Controller/Main/GenTx/CommonTransferResult.swift b/Cosmostation/Controller/Main/GenTx/CommonTransferResult.swift index 6cdd4813c..4ef00cbec 100644 --- a/Cosmostation/Controller/Main/GenTx/CommonTransferResult.swift +++ b/Cosmostation/Controller/Main/GenTx/CommonTransferResult.swift @@ -128,8 +128,13 @@ class CommonTransferResult: BaseVC, AddressBookDelegate { } else if (txStyle == .COSMOS_STYLE) { successMsgLabel.text = cosmosBroadcastTxResponse?.txhash - successExplorerBtn.setTitle("Check in Mintscan", for: .normal) - failExplorerBtn.setTitle("Check in Mintscan", for: .normal) + if fromChain.isSupportMintscan() { + successExplorerBtn.setTitle("Check in Mintscan", for: .normal) + failExplorerBtn.setTitle("Check in Mintscan", for: .normal) + } else { + successExplorerBtn.setTitle("Check in Explorer", for: .normal) + failExplorerBtn.setTitle("Check in Explorer", for: .normal) + } } } diff --git a/Cosmostation/Controller/Sheet/SelectDisplayTokenListSheet.swift b/Cosmostation/Controller/Sheet/SelectDisplayTokenListSheet.swift index 07a6829ff..f07585f61 100644 --- a/Cosmostation/Controller/Sheet/SelectDisplayTokenListSheet.swift +++ b/Cosmostation/Controller/Sheet/SelectDisplayTokenListSheet.swift @@ -76,11 +76,11 @@ class SelectDisplayTokenListSheet: BaseVC, UISearchBarDelegate{ func searchBar(_ searchBar: UISearchBar, textDidChange searchText: String) { if selectedChain.isSupportCw20() && selectedChain.isSupportErc20() { searchTokens = searchText.isEmpty ? allTokens.filter { $0.type == tokenType[segment.selectedSegmentIndex] } : allTokens.filter({ $0.type == tokenType[segment.selectedSegmentIndex] }).filter { token in - return token.symbol!.range(of: searchText, options: .caseInsensitive, range: nil, locale: nil) != nil + return token.symbol!.range(of: searchText, options: .caseInsensitive, range: nil, locale: nil) != nil || token.contract?.range(of: searchText, options: .caseInsensitive) != nil } } else { searchTokens = searchText.isEmpty ? allTokens : allTokens.filter { token in - return token.symbol!.range(of: searchText, options: .caseInsensitive, range: nil, locale: nil) != nil + return token.symbol!.range(of: searchText, options: .caseInsensitive, range: nil, locale: nil) != nil || token.contract?.range(of: searchText, options: .caseInsensitive) != nil } } sheetTableView.reloadData()