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 d9add2e commit c6121eeCopy full SHA for c6121ee
pallets/subtensor/src/staking/set_children.rs
@@ -108,8 +108,7 @@ impl<T: Config> Pallet<T> {
108
children.is_empty()
109
|| Self::get_total_stake_for_hotkey(&hotkey) >= StakeThreshold::<T>::get()
110
|| SubnetOwnerHotkey::<T>::try_get(netuid)
111
- .and_then(|owner_hotkey| Ok(owner_hotkey.eq(&hotkey)))
112
- .unwrap_or(false),
+ .is_ok_and(|owner_hotkey| owner_hotkey.eq(&hotkey)),
113
Error::<T>::NotEnoughStakeToSetChildkeys
114
);
115
0 commit comments