From 02b118c7c09d5125d1e272052def221523390c5e Mon Sep 17 00:00:00 2001 From: rathishubham7 Date: Mon, 7 Dec 2020 13:12:48 +0800 Subject: [PATCH] updated getpublicaddress --- Sources/TorusUtils/TorusUtils.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Sources/TorusUtils/TorusUtils.swift b/Sources/TorusUtils/TorusUtils.swift index 2ddbb573..546ced65 100644 --- a/Sources/TorusUtils/TorusUtils.swift +++ b/Sources/TorusUtils/TorusUtils.swift @@ -33,8 +33,7 @@ public class TorusUtils{ keyLookup.then{ lookupData -> Promise<[String: String]> in let error = lookupData["err"] - if(true){ - // if(error != nil){ + if(error != nil){ // Assign key to the user and return (wraped in a promise) return self.keyAssign(endpoints: endpoints, torusNodePubs: torusNodePubs, verifier: verifier, verifierId: verifierId).then{ data -> Promise<[String:String]> in // Do keylookup again