Switch config to .env

This commit is contained in:
poma 2019-07-18 17:05:09 +03:00
parent f7bca08480
commit 28ba4bad50
9 changed files with 28 additions and 18 deletions

View file

@ -1,6 +1,6 @@
const fetch = require('node-fetch')
const { isHexStrict } = require('web3-utils')
const { gasOracleUrls } = require('./env.json')
const { gasOracleUrls } = require('./config')
async function fetchGasPrice({ gasPrices, oracleIndex = 0 }) {
oracleIndex = (oracleIndex + 1) % gasOracleUrls.length