Use Goerli as the "main name". Do not show Prater in prompt message

This commit is contained in:
Hsiao-Wei Wang 2022-07-28 18:09:48 +08:00
parent 160d69b52b
commit a57373be16
No known key found for this signature in database
GPG Key ID: AE3D6B174F971DE4

View File

@ -34,6 +34,7 @@ from staking_deposit.utils.intl import (
from staking_deposit.settings import (
ALL_CHAINS,
MAINNET,
PRATER,
get_chain_setting,
)
@ -87,7 +88,8 @@ def generate_keys_arguments_decorator(function: Callable[..., Any]) -> Callable[
param_decls='--chain',
prompt=choice_prompt_func(
lambda: load_text(['chain', 'prompt'], func='generate_keys_arguments_decorator'),
list(ALL_CHAINS.keys())
# Since `prater` is alias of `goerli`, do not show `prater` in the prompt message.
list(key for key in ALL_CHAINS.keys() if key != PRATER)
),
),
jit_option(