Skip to content

Commit

Permalink
get version from package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
pertsev committed Aug 12, 2020
1 parent e801373 commit 74c6b6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require('dotenv').config()

module.exports = {
version: 3.0,
netId: Number(process.env.NET_ID) || 42,
redisUrl: process.env.REDIS_URL,
rpcUrl: process.env.RPC_URL || 'https://kovan.infura.io/',
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ const {
netId,
port,
relayerServiceFee,
version,
gasBumpPercentage,
pendingTxTimeout,
watherInterval,
Expand All @@ -14,6 +13,7 @@ const { fetcher, web3, gasPriceOracle } = require('./instances')
const { getMixers } = require('./utils')
const mixers = getMixers()
const { redisClient } = require('./redis')
const { version } = require('../package.json')
const app = express()
app.use(express.json())

Expand Down Expand Up @@ -62,7 +62,7 @@ app.get('/status', async function (req, res) {
})

app.post('/relay', relayController)

console.log('Version:', version)
let server = app.listen(port || 8000)
server.setTimeout(600000)
console.log('Gas price oracle started.')
Expand Down

0 comments on commit 74c6b6d

Please sign in to comment.