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}`);
|
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!") });
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user