From 551edcfa728bebe9645cfcb32ff6917f83a0d91a Mon Sep 17 00:00:00 2001 From: Michael Bumann Date: Fri, 5 Apr 2019 01:05:16 +0200 Subject: [PATCH] Fix init kredits for readonly providers The apm option was not passed on to kredits --- scripts/helpers/init_kredits.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/helpers/init_kredits.js b/scripts/helpers/init_kredits.js index cb2a3f4..e151977 100644 --- a/scripts/helpers/init_kredits.js +++ b/scripts/helpers/init_kredits.js @@ -20,7 +20,7 @@ module.exports = async function(web3) { }); }).catch(e => { console.log(`Signer account not available; readonly connection (${e.message}`); - new Kredits(provider, null).init().then(kredits => { + new Kredits(provider, null, { apm }).init().then(kredits => { resolve(kredits); }).catch(e => { reject(e);