We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0590ec commit 29974a9Copy full SHA for 29974a9
pallets/subtensor/src/subnets/uids.rs
@@ -361,7 +361,7 @@ impl<T: Config> Pallet<T> {
361
);
362
363
// Insert the new UIDs
364
- for (old_uid, new_uid) in &old_to_new_uid {
+ for new_uid in old_to_new_uid.values() {
365
// Get the hotkey using Keys map and new UID.
366
let hotkey = Keys::<T>::get(netuid, *new_uid as u16);
367
Uids::<T>::insert(netuid, hotkey, *new_uid as u16);
0 commit comments