7.3 crafty chhnemu | https://trello.com/c/3fMfHclE (#179)
* Added default ETH(infura) * Code changes regarding review on PR 179 (https://github.com/lamassu/lamassu-server/pull/179) * Code changes regarding review on PR 179 (#179)
This commit is contained in:
parent
52309c53a4
commit
50e78078e3
1 changed files with 8 additions and 2 deletions
|
|
@ -97,13 +97,16 @@ function plugin (crypto) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function run () {
|
function run () {
|
||||||
|
const ETHEREUM_CRYPTO_CODE ='ETH'
|
||||||
const choices = _.map(c => {
|
const choices = _.map(c => {
|
||||||
const checked = isInstalledSoftware(c) && isInstalledVolume(c)
|
const checked = isInstalledSoftware(c) && isInstalledVolume(c)
|
||||||
return {
|
return {
|
||||||
name: c.display,
|
name: c.display,
|
||||||
value: c.code,
|
value: c.code,
|
||||||
checked,
|
checked,
|
||||||
disabled: checked && 'Installed'
|
disabled: c.cryptoCode === ETHEREUM_CRYPTO_CODE
|
||||||
|
? 'Installed, use Infura option'
|
||||||
|
: checked && 'Installed'
|
||||||
}
|
}
|
||||||
}, cryptos)
|
}, cryptos)
|
||||||
|
|
||||||
|
|
@ -117,5 +120,8 @@ function run () {
|
||||||
})
|
})
|
||||||
|
|
||||||
inquirer.prompt(questions)
|
inquirer.prompt(questions)
|
||||||
.then(answers => processCryptos(answers.crypto))
|
.then(answers => {
|
||||||
|
answers.crypto.push(coinUtils.getCryptoCurrency(ETHEREUM_CRYPTO_CODE).code)
|
||||||
|
processCryptos(answers.crypto)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue