Skip to content

Commit

Permalink
Adjust check of CLI args (proxy).
Browse files Browse the repository at this point in the history
  • Loading branch information
andreibancioiu committed Aug 7, 2023
1 parent 1826353 commit 0420538
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions multiversx_sdk_cli/cli_shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@ def prepare_guardian_account(args: Any):


def prepare_nonce_in_args(args: Any):
if args.recall_nonce and not args.proxy:
raise ArgumentsNotProvidedError("When using `--recall-nonce`, `--proxy` must be provided, as well")

if args.recall_nonce:
account = prepare_account(args)
account.sync_nonce(ProxyNetworkProvider(args.proxy))
Expand Down
3 changes: 3 additions & 0 deletions multiversx_sdk_cli/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,9 @@ def add_config_args(argv: List[str]) -> List[str]:


def check_for_deprecated_args(args: List[str]) -> None:
if "proxy" in args:
show_warning("Providing `proxy` in the configuration file is deprecated. It will not be used. Please remove it!")

if "chainID" in args:
show_warning("Providing `chainID` in the configuration file is deprecated. It will not be used. Please remove it!")

Expand Down

0 comments on commit 0420538

Please sign in to comment.