Skip to content

Commit faf6217

Browse files
committed
update netuid in call_params
1 parent 06779af commit faf6217

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

bittensor_cli/src/bittensor/extrinsics/registration.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1820,9 +1820,8 @@ async def swap_hotkey_extrinsic(
18201820
call_params = {
18211821
"hotkey": wallet.hotkey.ss58_address,
18221822
"new_hotkey": new_wallet.hotkey.ss58_address,
1823+
"netuid": netuid,
18231824
}
1824-
if netuid is not None:
1825-
call_params["netuid"] = netuid
18261825

18271826
call = await subtensor.substrate.compose_call(
18281827
call_module="SubtensorModule",

0 commit comments

Comments
 (0)