We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 103c27e commit f3e12cbCopy full SHA for f3e12cb
1 file changed
multiversx_sdk_cli/cli_shared.py
@@ -308,10 +308,12 @@ def prepare_account(args: Any):
308
309
def _get_address_hrp(args: Any) -> str:
310
"""Use hrp provided by the user. If not provided, fetch from network. If proxy not provided, get hrp from config."""
311
+ hrp: str = ""
312
+
313
if hasattr(args, "hrp") and args.hrp:
- return args.hrp
314
+ hrp = args.hrp
315
+ return hrp
316
- hrp: str = ""
317
if hasattr(args, "proxy") and args.proxy:
318
hrp = _get_hrp_from_proxy(args)
319
elif hasattr(args, "api") and args.api:
0 commit comments