fix callback

This commit is contained in:
Jonathan Rainville 2018-06-12 15:32:38 -04:00
parent ef5e1e2707
commit 0f84fe2127
1 changed files with 4 additions and 2 deletions

View File

@ -47,7 +47,7 @@ module.exports = {
next(null, files);
});
},
function setupGlobalNamespace(next) {
function setupGlobalNamespace(files, next) {
// TODO put default config
const test = new Test();
global.embark = test;
@ -78,7 +78,9 @@ module.exports = {
};
console.info('Compiling contracts'.cyan);
test.init(next);
test.init((err) => {
next(err, files);
});
},
function executeForAllFiles(files, next) {
async.eachLimit(files, 1, (file, eachCb) => {