Skip to content

Commit 8b25c1d

Browse files
committed
remove old key
1 parent 05372fe commit 8b25c1d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pallets/subtensor/src/swap/swap_coldkey.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ impl<T: Config> Pallet<T> {
179179
}
180180

181181
if let Some(old_auto_stake_hotkey) = AutoStakeDestination::<T>::get(old_coldkey) {
182+
AutoStakeDestination::<T>::remove(old_coldkey);
182183
AutoStakeDestination::<T>::insert(new_coldkey, old_auto_stake_hotkey);
183184
}
184185

0 commit comments

Comments
 (0)