Skip to content

Commit

Permalink
Merge pull request #299 from multiversx/check-args
Browse files Browse the repository at this point in the history
Adjust check of CLI args (proxy)
  • Loading branch information
andreibancioiu authored Aug 8, 2023
2 parents f767d56 + 0420538 commit 3520bc7
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 3520bc7

Please sign in to comment.