Remove not needed network check
We default to localhost anyway
This commit is contained in:
parent
4c64aa7c2a
commit
e20bda73fb
@ -70,7 +70,7 @@ class Kredits {
|
|||||||
let { 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) {
|
||||||
ethProvider = new ethers.providers.JsonRpcProvider(rpcUrl);
|
ethProvider = new ethers.providers.JsonRpcProvider(rpcUrl);
|
||||||
} else {
|
} else {
|
||||||
ethProvider = new ethers.getDefaultProvider(network);
|
ethProvider = new ethers.getDefaultProvider(network);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user