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 eea273a commit 16d636aCopy full SHA for 16d636a
pallets/subtensor/src/subnets/weights.rs
@@ -226,9 +226,9 @@ impl<T: Config> Pallet<T> {
226
Error::<T>::HotKeyNotRegisteredInSubNet
227
);
228
229
- // --- 6. Check to see if the hotkey has enought stake to set weights.
+ // --- 6. Check to see if the hotkey has enough stake to set weights.
230
ensure!(
231
- Self::get_total_stake_for_hotkey(&hotkey) >= Self::get_weights_min_stake(),
+ Self::check_weights_min_stake(&hotkey, netuid),
232
Error::<T>::NotEnoughStakeToSetWeights
233
234
0 commit comments