diff --git a/lib/modules/ens/index.js b/lib/modules/ens/index.js index 09d889d0a..d1345c8ba 100644 --- a/lib/modules/ens/index.js +++ b/lib/modules/ens/index.js @@ -16,12 +16,11 @@ class ENS { this.configureENSRegistry(); self.embark.registerActionForEvent("contracts:deploy:afterAll", (cb) => { self.events.request('contracts:contract', "ENSRegistry", (contract) => { - console.log("CONTRACT: ", contract); - /*let config = { + let config = { abi: contract.abiDefinition, address: contract.deployedAddress - };*/ - //self.addSetProvider(config); + }; + self.addSetProvider(config); return cb(); }); }); @@ -85,7 +84,7 @@ class ENS { } } }); - self.embark.events.request("config:contractsFiles:add", embark.pathToFile('./contracts/ENSRegistry.sol')); + self.embark.events.request("config:contractsFiles:add", self.embark.pathToFile('./contracts/ENSRegistry.sol')); } addSetProvider(config) {