Fix init kredits for readonly providers
The apm option was not passed on to kredits
This commit is contained in:
parent
d58e2d560a
commit
551edcfa72
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue