Fix init kredits for readonly providers

The apm option was not passed on to kredits
This commit is contained in:
bumi 2019-04-05 01:05:16 +02:00
parent d58e2d560a
commit 551edcfa72

View File

@ -20,7 +20,7 @@ module.exports = async function(web3) {
}); });
}).catch(e => { }).catch(e => {
console.log(`Signer account not available; readonly connection (${e.message}`); 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); resolve(kredits);
}).catch(e => { }).catch(e => {
reject(e); reject(e);