Allow seed tx to fail #66

Merged
raucao merged 2 commits from chore/seeds into master 2019-04-03 17:03:23 +00:00
Showing only changes of commit ed3e5dd4c4 - Show all commits

View File

@@ -39,8 +39,8 @@ module.exports = async function(callback) {
console.log(`[OK] kredits.${contractName}.${method}(${JSON.stringify(args)}) => ${result.hash}`);
next();
}).catch((error) => {
console.log(`[FAILD] kredits.${contractName}.${method}(${JSON.stringify(args)})`);
callback(error)
console.log(`[FAILED] kredits.${contractName}.${method}(${JSON.stringify(args)})`);
next();
});
}, () => { console.log("\nDone!") });