From 70f38d863eb959ad54eb5c9c653e4a1b521d8cf5 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Tue, 29 May 2018 17:23:07 -0400 Subject: [PATCH] fix code generator event --- lib/contracts/code_generator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/contracts/code_generator.js b/lib/contracts/code_generator.js index b30807de8..a00e61121 100644 --- a/lib/contracts/code_generator.js +++ b/lib/contracts/code_generator.js @@ -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); }); });