diff --git a/lib/modules/ens/embarkjs.js b/lib/modules/ens/embarkjs.js index 31535aca8..fdd746531 100644 --- a/lib/modules/ens/embarkjs.js +++ b/lib/modules/ens/embarkjs.js @@ -192,7 +192,7 @@ __embarkENS.resolve = function (name, callback) { if (resolverAddress === voidAddress) { return cb('Name not yet registered'); } - let resolverContract = new EmbarkJS.Contract({abi: this.resolverInterface, address: resolverAddress}); + let resolverContract = new EmbarkJS.Contract({abi: this.resolverInterface, address: resolverAddress, web3: web3}); resolverContract.methods.addr(node).call(cb); }); }; @@ -221,7 +221,7 @@ __embarkENS.lookup = function (address, callback) { if (resolverAddress === voidAddress) { return cb('Address not associated to a resolver'); } - let resolverContract = new EmbarkJS.Contract({abi: this.resolverInterface, address: resolverAddress}); + let resolverContract = new EmbarkJS.Contract({abi: this.resolverInterface, address: resolverAddress, web3: web3 }); resolverContract.methods.name(node).call(cb); }); };