mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-08 20:54:33 +00:00
connect_to_testnet.nims: default to "n" on the interactive prompt [skip ci]
This commit is contained in:
parent
570de0839d
commit
40648b463a
@ -80,10 +80,10 @@ cli do (testnetName {.argument.}: string):
|
|||||||
|
|
||||||
if depositContractOpt.len > 0 and not system.dirExists(validatorsDir):
|
if depositContractOpt.len > 0 and not system.dirExists(validatorsDir):
|
||||||
mode = Silent
|
mode = Silent
|
||||||
echo "Would you like to become a validator (you'll need access to 32 GoETH)? [Yn]"
|
echo "Would you like to become a validator (you'll need access to 32 GoETH)? [yN]"
|
||||||
while true:
|
while true:
|
||||||
let answer = readLineFromStdin()
|
let answer = readLineFromStdin()
|
||||||
if answer in ["y", "Y", "yes", ""]:
|
if answer in ["y", "Y", "yes"]:
|
||||||
echo "Please enter your Eth1 private key in hex form (e.g. 0x1a2...f3c). Hit Enter to cancel."
|
echo "Please enter your Eth1 private key in hex form (e.g. 0x1a2...f3c). Hit Enter to cancel."
|
||||||
let privKey = readLineFromStdin()
|
let privKey = readLineFromStdin()
|
||||||
if privKey.len > 0:
|
if privKey.len > 0:
|
||||||
@ -96,7 +96,7 @@ cli do (testnetName {.argument.}: string):
|
|||||||
{depositContractOpt}
|
{depositContractOpt}
|
||||||
""", "\n", " ")
|
""", "\n", " ")
|
||||||
break
|
break
|
||||||
elif answer in ["n", "N", "no"]:
|
elif answer in ["n", "N", "no", ""]:
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
echo "Please answer 'yes' or 'no'"
|
echo "Please answer 'yes' or 'no'"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user