Skip to content

Commit 29974a9

Browse files
committed
clpy
1 parent b0590ec commit 29974a9

File tree

1 file changed

+1
-1
lines changed
  • pallets/subtensor/src/subnets

1 file changed

+1
-1
lines changed

pallets/subtensor/src/subnets/uids.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ impl<T: Config> Pallet<T> {
361361
);
362362

363363
// Insert the new UIDs
364-
for (old_uid, new_uid) in &old_to_new_uid {
364+
for new_uid in old_to_new_uid.values() {
365365
// Get the hotkey using Keys map and new UID.
366366
let hotkey = Keys::<T>::get(netuid, *new_uid as u16);
367367
Uids::<T>::insert(netuid, hotkey, *new_uid as u16);

0 commit comments

Comments
 (0)