From 61105e15f61e23971bfa7ddbcd39462be6f2c32d Mon Sep 17 00:00:00 2001 From: andrey Date: Mon, 16 Nov 2020 11:15:30 +0100 Subject: [PATCH] fix ens content resolution Signed-off-by: andrey --- src/status_im/ethereum/ens.cljs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/status_im/ethereum/ens.cljs b/src/status_im/ethereum/ens.cljs index c2c4f2dfe6..172451ed40 100644 --- a/src/status_im/ethereum/ens.cljs +++ b/src/status_im/ethereum/ens.cljs @@ -136,7 +136,10 @@ :params [(namehash ens-name)] :on-success (fn [hash] - (cb hash))})) + (cb hash)) + ;;at some point infura started to return execution reverted error instead of "0x" result + ;;our code expects "0x" result + :on-error #(cb "0x")})) (def ABI-hash "0x2203ab56") (def pubkey-hash "0xc8690233")