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,6 +1,8 @@
const _ = require('lodash/fp')
const base = require('../geth/base')
const NAME = 'infura'
function run (account) {
if (!account.endpoint) throw new Error('Need to configure API endpoint for Infura')
@ -10,4 +12,4 @@ function run (account) {
base.connect(endpoint)
}
module.exports = _.merge(base, {run})
module.exports = _.merge(base, { NAME, run })