Skip to content

Commit f48ed73

Browse files
committed
fix mypyp error
1 parent cddc415 commit f48ed73

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

multiversx_sdk_cli/cli_shared.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -404,10 +404,10 @@ def _load_wallet_from_address_config(wallet: dict[str, str], hrp: str) -> Accoun
404404
if kind not in ["pem", "keystore"]:
405405
raise InvalidAddressConfigValue("'kind' must be 'pem' or 'keystore'")
406406

407-
path = wallet.get("path", None)
408-
if not path:
407+
wallet_path = wallet.get("path", None)
408+
if not wallet_path:
409409
raise AddressConfigFileError("'path' field must be set in the address config")
410-
path = Path(path)
410+
path = Path(wallet_path)
411411

412412
index = int(wallet.get("index", 0))
413413

0 commit comments

Comments
 (0)