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