fix code generator event

This commit is contained in:
Iuri Matias 2018-05-29 17:23:07 -04:00
parent f1cb7d1187
commit 70f38d863e

View File

@ -81,7 +81,7 @@ class CodeGenerator {
});
self.events.setCommandHandler('code-generator:contract', (contractName, cb) => {
self.events.setCommandHandler('contracts:contract', contractName, (contract) => {
self.events.request('contracts:contract', contractName, (contract) => {
self.buildContractJS(contractName, self.generateContractJSON(contract, contract), cb);
});
});