From 06953d99c490431a2b8797e66741bba1eec16ba5 Mon Sep 17 00:00:00 2001 From: VoR0220 Date: Tue, 26 Jun 2018 14:44:29 -0500 Subject: [PATCH] small correction Signed-off-by: VoR0220 --- lib/modules/ens/embarkjs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/modules/ens/embarkjs.js b/lib/modules/ens/embarkjs.js index 659110677..779d3ec57 100644 --- a/lib/modules/ens/embarkjs.js +++ b/lib/modules/ens/embarkjs.js @@ -196,7 +196,7 @@ __embarkENS.resolve = function (name) { }).then((addr) => { return addr; }).catch((err) => { - if (err == 'Couldn\'t decode addr from ABI: 0x') { + if (err == 'Error: Couldn\'t decode address from ABI: 0x') { console.log(name + " is not registered"); return "0x"; } @@ -219,7 +219,7 @@ __embarkENS.lookup = function (address) { let resolverContract = new EmbarkJS.Contract({abi: self.resolverInterface, address: resolverAddress}); return resolverContract.methods.name(node).call(); }).catch((err) => { - if (err == 'ERROR: The returned value is not a convertible string: 0x0') { + if (err == 'ERROR: The returned value is not a convertible string: 0x0' || err == 'Error: Couldn\'t decode address from ABI: 0x') { console.log('Address does not resolve to name. Try syncing chain.'); return ""; }