From ed3e5dd4c4ec1f4cb416d3f88b5360c64d420685 Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Wed, 3 Apr 2019 11:41:55 +0200 Subject: [PATCH] Allow seed tx to fail This allows for running seeds multiple times, e.g. after adding new ones. --- scripts/seeds.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/seeds.js b/scripts/seeds.js index b3641e7..15c5e6b 100644 --- a/scripts/seeds.js +++ b/scripts/seeds.js @@ -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!") });