This commit is contained in:
bumi 2019-05-14 11:31:33 +02:00
parent df7536589d
commit 1a227ba67c

View File

@ -67,7 +67,7 @@ class Kredits {
} }
static for (connectionOptions, kreditsOptions) { static for (connectionOptions, kreditsOptions) {
const { network, rpcUrl, wallet } = connectionOptions; let { network, rpcUrl, wallet } = connectionOptions;
if (!rpcUrl && network === 'local') { rpcUrl = 'http://localhost:8545'; } if (!rpcUrl && network === 'local') { rpcUrl = 'http://localhost:8545'; }
let ethProvider, signer; let ethProvider, signer;
if (rpcUrl || network === 'local') { if (rpcUrl || network === 'local') {