remove extra method

This commit is contained in:
Iuri Matias 2018-05-16 10:09:46 -04:00
parent da84cfa769
commit d8a1894803

View File

@ -46,7 +46,7 @@ class Pipeline {
},
function writeContracts(next) {
async.each(Object.keys(contractsJSON), (contractName, eachCb) => {
self.buildContractJS(contractName, (err, contractCode) => {
self.events.request('code-generator:contract', contractName, (contractCode) => {
let filePath = fs.dappPath(".embark", contractName + '.js');
importsList["Embark/contracts/" + contractName] = filePath;
fs.writeFile(filePath, contractCode, eachCb);
@ -188,14 +188,6 @@ class Pipeline {
});
}
buildContractJS(contractName, callback) {
const self = this;
self.events.request('code-generator:contract', contractName, (code) => {
callback(null, code);
});
}
buildWeb3JS(cb) {
const self = this;
async.waterfall([