You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a problem when loading the account in block lines 39-41 in account.py while provided private key as parameter (--private-key TEXT). The private_key_path in the _load_account function is passed from settings.PRIVATE_KEY_FILE which has a default value (device.key). So, whenever I try to pass private key as text in the cli, the default value of the private_key_path is passed as well, invoking the assert "Private key should be a string or a filepath, not both.".
Solution, the assert should check if private_key_path is the default value, if it is the default value and private_key_str is populated, then nullify the private_key_path so private_key_str is taken into consideration along the line (line 43 in account.py).
The text was updated successfully, but these errors were encountered:
There is a problem when loading the account in block lines 39-41 in account.py while provided private key as parameter (--private-key TEXT). The private_key_path in the _load_account function is passed from settings.PRIVATE_KEY_FILE which has a default value (device.key). So, whenever I try to pass private key as text in the cli, the default value of the private_key_path is passed as well, invoking the assert "Private key should be a string or a filepath, not both.".
Solution, the assert should check if private_key_path is the default value, if it is the default value and private_key_str is populated, then nullify the private_key_path so private_key_str is taken into consideration along the line (line 43 in account.py).
The text was updated successfully, but these errors were encountered: