Skip to content

Commit f17472f

Browse files
authored
Merge pull request #2069 from opentensor/fix/safe-math
Cleanup math and LastUpdate fix
2 parents e0c8250 + 828a824 commit f17472f

File tree

22 files changed

+917
-941
lines changed

22 files changed

+917
-941
lines changed

pallets/admin-utils/src/tests/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2638,7 +2638,7 @@ fn test_trim_to_max_allowed_uids() {
26382638
NetUid::from(42),
26392639
new_max_n
26402640
),
2641-
pallet_subtensor::Error::<Test>::MechanismDoesNotExist
2641+
pallet_subtensor::Error::<Test>::SubnetNotExists
26422642
);
26432643

26442644
// New max n less than lower bound

pallets/subtensor/src/coinbase/root.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ impl<T: Config> Pallet<T> {
369369
// 1. --- The network exists?
370370
ensure!(
371371
Self::if_subnet_exist(netuid) && netuid != NetUid::ROOT,
372-
Error::<T>::MechanismDoesNotExist
372+
Error::<T>::SubnetNotExists
373373
);
374374

375375
// 2. --- Perform the cleanup before removing the network.

0 commit comments

Comments
 (0)