From 92e33465bdded054a2331f0afa2cb1fe67c94f51 Mon Sep 17 00:00:00 2001 From: Cameron Fairchild Date: Tue, 31 Jan 2023 14:19:52 -0500 Subject: [PATCH] Fix is_registered call (#1080) . --- bittensor/_wallet/wallet_impl.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bittensor/_wallet/wallet_impl.py b/bittensor/_wallet/wallet_impl.py index adeac4937e..04bd683017 100644 --- a/bittensor/_wallet/wallet_impl.py +++ b/bittensor/_wallet/wallet_impl.py @@ -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.