Skip to content

Commit e471071

Browse files
committed
Unrelated: Fix typo
1 parent 9566d0e commit e471071

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bittensor_cli/src/commands/view.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def get_identity(
9292
hotkey_ss58: str,
9393
identities: dict,
9494
old_identities: dict,
95-
trucate_length: int = 4,
95+
truncate_length: int = 4,
9696
return_bool: bool = False,
9797
lookup_hk: bool = True,
9898
) -> str:
@@ -114,7 +114,7 @@ def get_identity(
114114
if return_bool:
115115
return False
116116
else:
117-
return f"{hotkey_ss58[:trucate_length]}...{hotkey_ss58[-trucate_length:]}"
117+
return f"{hotkey_ss58[:truncate_length]}...{hotkey_ss58[-truncate_length:]}"
118118

119119

120120
async def fetch_subnet_data(
@@ -253,7 +253,7 @@ def process_subnet_data(raw_data: dict[str, Any]) -> dict[str, Any]:
253253
# Add identities
254254
for hotkey in meta_info.hotkeys:
255255
identity = get_identity(
256-
hotkey, ck_hk_identities, old_identities, trucate_length=2
256+
hotkey, ck_hk_identities, old_identities, truncate_length=2
257257
)
258258
metagraph_info["updated_identities"].append(identity)
259259

0 commit comments

Comments
 (0)