Open UselessXiaoYao opened 2 weeks ago
Caused by this function:
def parse_to_list(
raw_list: str, list_type: type, error_message: str, is_ss58: bool = False
) -> list:
try:
# Split the string by commas and convert each part to according to type
parsed_list = [
list_type(uid.strip()) for uid in raw_list.split(",") if uid.strip()
]
# Validate in-case of ss58s
if is_ss58:
for item in parsed_list:
if not is_valid_ss58_address(item):
raise typer.BadParameter(f"Invalid SS58 address: {item}")
return parsed_list
except ValueError:
raise typer.BadParameter(error_message)
We must change the way we're handling this on items for include/exclude hotkeys on:
Hey @UselessXiaoYao We're currently discussing whether or not to add support for hotkey names in this. Currently, as he help text for that option indicates, only the ss58 addresses are considered valid for that option.
PR #216 adds support for this.
When I use "btcli st remove --wallet.name mywallet --in hk1,hk2 --all", it report error, "Invalid value: Invalid SS58 address: hk1"