finish the deployment stage

Signed-off-by: VoR0220 <catalanor0220@gmail.com>
This commit is contained in:
VoR0220 2018-06-18 10:58:42 -05:00 committed by Iuri Matias
parent 734dc85825
commit bb797edbe1
1 changed files with 4 additions and 5 deletions

View File

@ -16,12 +16,11 @@ class ENS {
this.configureENSRegistry(); this.configureENSRegistry();
self.embark.registerActionForEvent("contracts:deploy:afterAll", (cb) => { self.embark.registerActionForEvent("contracts:deploy:afterAll", (cb) => {
self.events.request('contracts:contract', "ENSRegistry", (contract) => { self.events.request('contracts:contract', "ENSRegistry", (contract) => {
console.log("CONTRACT: ", contract); let config = {
/*let config = {
abi: contract.abiDefinition, abi: contract.abiDefinition,
address: contract.deployedAddress address: contract.deployedAddress
};*/ };
//self.addSetProvider(config); self.addSetProvider(config);
return cb(); 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) { addSetProvider(config) {