From e20bda73fb333d0b36b8685e20f9f0aea661bca4 Mon Sep 17 00:00:00 2001 From: Michael Bumann Date: Fri, 17 May 2019 09:17:10 +0200 Subject: [PATCH] Remove not needed network check We default to localhost anyway --- lib/kredits.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/kredits.js b/lib/kredits.js index 003c88e..fdcb63b 100644 --- a/lib/kredits.js +++ b/lib/kredits.js @@ -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);