diff --git a/eth2deposit/cli/existing_mnemonic.py b/eth2deposit/cli/existing_mnemonic.py index d15a339..87f30d7 100644 --- a/eth2deposit/cli/existing_mnemonic.py +++ b/eth2deposit/cli/existing_mnemonic.py @@ -48,7 +48,7 @@ def validate_mnemonic(cts: click.Context, param: Any, mnemonic: str) -> str: default=0, prompt=('Enter the index (key number) you wish to start generating more keys from. ' 'For example, if you\'ve generated 4 keys in the past, you\'d enter 4 here,'), - type=click.IntRange(0, 2**32), + type=click.IntRange(0, 2**32 - 1), ) @generate_keys_arguments_decorator def existing_mnemonic(ctx: click.Context, mnemonic: str, mnemonic_password: str, **kwargs: Any) -> None: diff --git a/eth2deposit/cli/generate_keys.py b/eth2deposit/cli/generate_keys.py index 8b09e86..729a9a1 100644 --- a/eth2deposit/cli/generate_keys.py +++ b/eth2deposit/cli/generate_keys.py @@ -32,7 +32,7 @@ def generate_keys_arguments_decorator(function: Callable[..., Any]) -> Callable[ '--num_validators', prompt='Please choose how many validators you wish to run', required=True, - type=click.IntRange(0, 2**32), + type=click.IntRange(0, 2**32 - 1), ), click.option( '--folder',