From bb797edbe18f32c0e894b5359939d9c859ba61c0 Mon Sep 17 00:00:00 2001 From: VoR0220 Date: Mon, 18 Jun 2018 10:58:42 -0500 Subject: [PATCH] finish the deployment stage Signed-off-by: VoR0220 --- lib/modules/ens/index.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/modules/ens/index.js b/lib/modules/ens/index.js index 09d889d0..d1345c8b 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) {