Remove not needed network check

We default to localhost anyway
This commit is contained in:
bumi 2019-05-17 09:17:10 +02:00
parent 4c64aa7c2a
commit e20bda73fb

View File

@ -70,7 +70,7 @@ class Kredits {
let { network, rpcUrl, wallet } = connectionOptions;
if (!rpcUrl && network === 'local') { rpcUrl = 'http://localhost:8545'; }
let ethProvider, signer;
if (rpcUrl || network === 'local') {
if (rpcUrl) {
ethProvider = new ethers.providers.JsonRpcProvider(rpcUrl);
} else {
ethProvider = new ethers.getDefaultProvider(network);