fix: always set new web3 providers despite one being previously set

feat: separate eth wallet names
This commit is contained in:
Sérgio Salgado 2022-06-21 08:30:52 +01:00
parent c94d767f0b
commit 4af07a3609
4 changed files with 12 additions and 10 deletions

View file

@ -1,9 +1,15 @@
const _ = require('lodash/fp')
const base = require('./base')
const { utils: coinUtils } = require('@lamassu/coins')
const cryptoRec = coinUtils.getCryptoCurrency('ETH')
const defaultPort = cryptoRec.defaultPort
base.connect(`http://localhost:${defaultPort}`)
const NAME = 'geth'
module.exports = base
function run (account) {
base.connect(`http://localhost:${defaultPort}`)
}
module.exports = _.merge(base, { NAME, run })