Skip to content

Commit 6818651

Browse files
authored
fix get_delegates result decoding
1 parent bf7d195 commit 6818651

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bittensor/core/subtensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1764,7 +1764,7 @@ def get_delegates(self, block: Optional[int] = None) -> list[DelegateInfo]:
17641764
if not (result := json_body.get("result", None)):
17651765
return []
17661766

1767-
return DelegateInfo.list_from_vec_u8(result)
1767+
return DelegateInfo.list_from_vec_u8(bytes(result))
17681768

17691769
def is_hotkey_delegate(self, hotkey_ss58: str, block: Optional[int] = None) -> bool:
17701770
"""

0 commit comments

Comments
 (0)