diff --git a/lib/blockchain/install.js b/lib/blockchain/install.js index 79d86f64..c2094540 100644 --- a/lib/blockchain/install.js +++ b/lib/blockchain/install.js @@ -97,13 +97,16 @@ function plugin (crypto) { } function run () { + const ETHEREUM_CRYPTO_CODE ='ETH' const choices = _.map(c => { const checked = isInstalledSoftware(c) && isInstalledVolume(c) return { name: c.display, value: c.code, checked, - disabled: checked && 'Installed' + disabled: c.cryptoCode === ETHEREUM_CRYPTO_CODE + ? 'Installed, use Infura option' + : checked && 'Installed' } }, cryptos) @@ -117,5 +120,8 @@ function run () { }) inquirer.prompt(questions) - .then(answers => processCryptos(answers.crypto)) + .then(answers => { + answers.crypto.push(coinUtils.getCryptoCurrency(ETHEREUM_CRYPTO_CODE).code) + processCryptos(answers.crypto) + }) }