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
1 changed files with 1 additions and 1 deletions

View File

@ -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);