Skip to content

Commit f3e12cb

Browse files
committed
fix mypy error
1 parent 103c27e commit f3e12cb

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

multiversx_sdk_cli/cli_shared.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,10 +308,12 @@ def prepare_account(args: Any):
308308

309309
def _get_address_hrp(args: Any) -> str:
310310
"""Use hrp provided by the user. If not provided, fetch from network. If proxy not provided, get hrp from config."""
311+
hrp: str = ""
312+
311313
if hasattr(args, "hrp") and args.hrp:
312-
return args.hrp
314+
hrp = args.hrp
315+
return hrp
313316

314-
hrp: str = ""
315317
if hasattr(args, "proxy") and args.proxy:
316318
hrp = _get_hrp_from_proxy(args)
317319
elif hasattr(args, "api") and args.api:

0 commit comments

Comments
 (0)