fix: Ensuring empty RPC URLs values are string type

This commit is contained in:
donosonaumczuk
2022-04-13 17:12:13 +01:00
parent 11ac489b7c
commit 42a3011e00

View File

@@ -31,7 +31,7 @@ const TRACK_GAS = process.env.TRACK_GAS === 'true';
const BLOCK_EXPLORER_KEY = process.env.BLOCK_EXPLORER_KEY || '';
const getCommonNetworkConfig = (networkName: eNetwork, networkId: number) => ({
url: NETWORKS_RPC_URL[networkName],
url: NETWORKS_RPC_URL[networkName] ?? '',
accounts: {
mnemonic: MNEMONIC,
path: MNEMONIC_PATH,