Drop Geth installation upon coins installation (#181)

* drop geth installation

* code refactoring
This commit is contained in:
pedromiguelmiranda 2018-10-04 19:37:08 +01:00 committed by Josh Harvey
parent 50e78078e3
commit 6a2e3bc348

View file

@ -96,15 +96,14 @@ function plugin (crypto) {
return plugin
}
function run () {
const ETHEREUM_CRYPTO_CODE ='ETH'
function run () {
const choices = _.map(c => {
const checked = isInstalledSoftware(c) && isInstalledVolume(c)
return {
name: c.display,
value: c.code,
checked,
disabled: c.cryptoCode === ETHEREUM_CRYPTO_CODE
disabled: c.cryptoCode === 'ETH'
? 'Installed, use Infura option'
: checked && 'Installed'
}
@ -120,8 +119,5 @@ function run () {
})
inquirer.prompt(questions)
.then(answers => {
answers.crypto.push(coinUtils.getCryptoCurrency(ETHEREUM_CRYPTO_CODE).code)
processCryptos(answers.crypto)
})
.then(answers => processCryptos(answers.crypto))
}