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

   {:contract resolver
    :method "contenthash(bytes32)"
    :params [(namehash ens-name)]
    :on-success
    (fn [raw-hash]
      ;; NOTE: it would be better if our abi-spec/decode was able to do that

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