Add debug logs for ENS

pull/3875/head
Hwee-Boon Yar 3 years ago
parent 7c4e0442eb
commit ab49f8fb2d
  1. 1
      AlphaWallet/Tokens/Coordinators/GetENSOwnerCoordinator.swift

@ -57,6 +57,7 @@ class GetENSAddressCoordinator: CachebleAddressResolutionServiceType {
//if null address is returned (as 0) we count it as invalid //if null address is returned (as 0) we count it as invalid
//this is because it is not assigned to an ENS and puts the user in danger of sending funds to null //this is because it is not assigned to an ENS and puts the user in danger of sending funds to null
if let resolver = result["0"] as? EthereumAddress { if let resolver = result["0"] as? EthereumAddress {
verbose("[ENS] fetched resolver: \(resolver) for: \(input) arg: \(node)")
if Constants.nullAddress.sameContract(as: resolver) { if Constants.nullAddress.sameContract(as: resolver) {
return .init(error: AnyError(Web3Error(description: "Null address returned"))) return .init(error: AnyError(Web3Error(description: "Null address returned")))
} else { } else {

Loading…
Cancel
Save