Allow seed tx to fail
This allows for running seeds multiple times, e.g. after adding new ones.
This commit is contained in:
parent
bd39d0f126
commit
ed3e5dd4c4
@ -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!") });
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user