Skip to content

Commit 42e3fd6

Browse files
committed
Fixes from manual testing
1 parent d0e16d0 commit 42e3fd6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

bittensor/core/async_subtensor.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,8 @@ async def bonds(
613613
)
614614
b_map = []
615615
async for uid, b in b_map_encoded:
616-
b_map.append((uid, b.value))
616+
if b.value is not None:
617+
b_map.append((uid, b.value))
617618

618619
return b_map
619620

@@ -724,14 +725,13 @@ async def does_hotkey_exist(
724725
`True` if the hotkey is known by the chain and there are accounts, `False` otherwise.
725726
"""
726727
block_hash = await self.determine_block_hash(block, block_hash, reuse_block)
727-
_result = await self.substrate.query(
728+
result = await self.substrate.query(
728729
module="SubtensorModule",
729730
storage_function="Owner",
730731
params=[hotkey_ss58],
731732
block_hash=block_hash,
732733
reuse_block_hash=reuse_block,
733734
)
734-
result = decode_account_id(_result.value[0])
735735
return_val = (
736736
False
737737
if result is None
@@ -912,7 +912,9 @@ async def get_children(
912912
block_hash=block_hash,
913913
reuse_block_hash=reuse_block,
914914
)
915+
print(915, children)
915916
if children:
917+
print(916, children)
916918
formatted_children = []
917919
for proportion, child in children.value:
918920
# Convert U64 to int

0 commit comments

Comments
 (0)