File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments