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 5b54733 commit 3832d59Copy full SHA for 3832d59
pallets/subtensor/src/subnets/mechanism.rs
@@ -99,8 +99,10 @@ impl<T: Config> Pallet<T> {
99
max_uids: u16,
100
mechanism_count: MechId,
101
) -> DispatchResult {
102
+ let max_uids_over_all_mechanisms =
103
+ max_uids.saturating_mul(u8::from(mechanism_count) as u16);
104
ensure!(
- max_uids.saturating_mul(u8::from(mechanism_count) as u16) <= 256,
105
+ max_uids_over_all_mechanisms <= T::DefaultMaxAllowedUids::get(),
106
Error::<T>::TooManyUIDsPerMechanism
107
);
108
Ok(())
0 commit comments