     :method "addr(bytes32)"
     :params [(namehash ens-name)]
     :outputs ["address"]
+    :on-error #(cb "0x")
     :on-success
     (fn [[address]]
       (cb address))}))

    :on-success
    (fn [[x y]]
      (let [public-key (uncompressed-public-key x y)]
        (cb public-key)))}))

(defn get-addr
  [registry ens-name cb]

    :method "resolver(bytes32)"
    :params [(namehash ens-name)]
    :outputs ["address"]
    :on-error #(cb "0x")
    :on-success
    (fn [[address]]
      (cb (when-not (= address default-address) address)))}))
