Skip to content

Commit

Permalink
Fix is_registered call (#1080)
Browse files Browse the repository at this point in the history
.
  • Loading branch information
camfairchild authored Jan 31, 2023
1 parent 55d8684 commit 92e3346
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bittensor/_wallet/wallet_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ def is_registered( self, subtensor: Optional['bittensor.Subtensor'] = None, netu
Is the wallet registered on the chain.
"""
if subtensor == None: subtensor = bittensor.subtensor()
return subtensor.is_hotkey_registered( self.hotkey.ss58_address, netuid = netuid )
if netuid == None: return subtensor.is_hotkey_registered_any( self.hotkey.ss58_address )
return subtensor.is_hotkey_registered_on_subnet( self.hotkey.ss58_address, netuid = netuid )

def get_neuron ( self, netuid: int, subtensor: Optional['bittensor.Subtensor'] = None ) -> Optional['bittensor.NeuronInfo'] :
""" Returns this wallet's neuron information from subtensor.
Expand Down

0 comments on commit 92e3346

Please sign in to comment.