Skip to content

Commit 3d668ea

Browse files
author
unconst
committed
cargo fmt
1 parent c2d0884 commit 3d668ea

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pallets/subtensor/src/migrations/migrate_rao.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ pub fn migrate_rao<T: Config>() -> Weight {
6262
// Convert subnets and give them lock.
6363
// Set global weight to 18% from the start
6464
// Set min lock
65-
NetworkMinLockCost::<T>::set( 1_000_000_000 );
65+
NetworkMinLockCost::<T>::set(1_000_000_000);
6666
// Set tao weight.
67-
TaoWeight::<T>::set( 3_320_413_933_267_719_290 );
67+
TaoWeight::<T>::set(3_320_413_933_267_719_290);
6868
for netuid in netuids.iter().clone() {
6969
if *netuid == 0 {
7070
// Give root a single RAO in pool to avoid any catestrophic division by zero.

pallets/subtensor/src/tests/migration.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ fn test_migrate_rao() {
602602
assert_eq!(SubnetTAO::<Test>::get(netuid_1), 1_000_000_000); // Always 1000000000
603603
assert_eq!(SubnetAlphaIn::<Test>::get(netuid_0), 1_000_000_000); // Always 1_000_000_000
604604
assert_eq!(SubnetAlphaIn::<Test>::get(netuid_1), 1_000_000_000); // Always 1_000_000_000
605-
assert_eq!(SubnetAlphaOut::<Test>::get(netuid_0),4 * stake_amount); // Root has everything.
605+
assert_eq!(SubnetAlphaOut::<Test>::get(netuid_0), 4 * stake_amount); // Root has everything.
606606
assert_eq!(SubnetAlphaOut::<Test>::get(netuid_1), 0); // No stake outstanding.
607607

608608
// Assert share information for hotkey1 on netuid_0

0 commit comments

Comments
 (0)