Allow seed tx to fail

This allows for running seeds multiple times, e.g. after adding new
ones.
This commit is contained in:
Basti 2019-04-03 11:41:55 +02:00
parent bd39d0f126
commit ed3e5dd4c4
No known key found for this signature in database
GPG Key ID: BE4634D632D39B67

View File

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