diff --git a/packages/plugins/ens/src/index.js b/packages/plugins/ens/src/index.js index 078b96f9e..67c4cbaa2 100644 --- a/packages/plugins/ens/src/index.js +++ b/packages/plugins/ens/src/index.js @@ -389,10 +389,16 @@ class ENS { } ensResolve(name, cb) { + if (!this.ensContract) { + return cb(__('ENS not registered for this configuration')); + } ENSFunctions.resolveName(name, this.ensContract, this.createResolverContract.bind(this), cb, namehash); } ensLookup(address, cb) { + if (!this.ensContract) { + return cb(__('ENS not registered for this configuration')); + } ENSFunctions.lookupAddress(address, this.ensContract, namehash, this.createResolverContract.bind(this), cb); }