mirror of
https://github.com/tornadocash/tornado-relayer.git
synced 2025-08-15 09:35:59 -04:00
Switch config to .env
This commit is contained in:
parent
f7bca08480
commit
28ba4bad50
9 changed files with 28 additions and 18 deletions
2
utils.js
2
utils.js
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue