lamassu-server/lib/plugins/wallet/infura/infura.js
2018-08-10 17:33:26 +03:00

11 lines
275 B
JavaScript

const _ = require('lodash/fp')
const base = require('../geth/base')
function run (account) {
const endpoint = account.endpoint
if (!endpoint) throw new Error('Need to configure API endpoint for Infura')
base.connect(endpoint)
}
module.exports = _.merge(base, {run})