File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -186,10 +186,10 @@ pub fn migrate_dissolve_sn73<T: Config>() -> Weight {
186
186
weight = weight. saturating_add ( T :: DbWeight :: get ( ) . writes ( 1 ) ) ;
187
187
}
188
188
189
- // Clear reg allowed maps
190
- NetworkRegistrationAllowed :: < T > :: remove ( this_netuid) ;
191
- NetworkPowRegistrationAllowed :: < T > :: remove ( this_netuid) ;
192
- weight = weight. saturating_add ( T :: DbWeight :: get ( ) . writes ( 2 ) ) ;
189
+ // Clear reg allowed maps
190
+ NetworkRegistrationAllowed :: < T > :: remove ( this_netuid) ;
191
+ NetworkPowRegistrationAllowed :: < T > :: remove ( this_netuid) ;
192
+ weight = weight. saturating_add ( T :: DbWeight :: get ( ) . writes ( 2 ) ) ;
193
193
// ======== End Migration Logic ========
194
194
195
195
// Mark the migration as completed
Original file line number Diff line number Diff line change @@ -489,9 +489,9 @@ fn test_migrate_dissolve_sn73_removes_entries() {
489
489
// Set sn volume
490
490
SubnetVolume :: < Test > :: insert ( this_netuid, 123 ) ;
491
491
492
- // Set reg allowed maps
493
- NetworkRegistrationAllowed :: < Test > :: insert ( this_netuid, true ) ;
494
- NetworkPowRegistrationAllowed :: < Test > :: insert ( this_netuid, true ) ;
492
+ // Set reg allowed maps
493
+ NetworkRegistrationAllowed :: < Test > :: insert ( this_netuid, true ) ;
494
+ NetworkPowRegistrationAllowed :: < Test > :: insert ( this_netuid, true ) ;
495
495
496
496
// === All maps are non-default ===
497
497
@@ -578,9 +578,9 @@ fn test_migrate_dissolve_sn73_removes_entries() {
578
578
// Verify sn volume is removed
579
579
assert ! ( SubnetVolume :: <Test >:: try_get( this_netuid) . is_err( ) ) ;
580
580
581
- // verify reg allowed maps are removed
582
- assert ! ( NetworkRegistrationAllowed :: <Test >:: try_get( this_netuid) . is_err( ) ) ;
583
- assert ! ( NetworkPowRegistrationAllowed :: <Test >:: try_get( this_netuid) . is_err( ) ) ;
581
+ // verify reg allowed maps are removed
582
+ assert ! ( NetworkRegistrationAllowed :: <Test >:: try_get( this_netuid) . is_err( ) ) ;
583
+ assert ! ( NetworkPowRegistrationAllowed :: <Test >:: try_get( this_netuid) . is_err( ) ) ;
584
584
} ) ;
585
585
}
586
586
You can’t perform that action at this time.
0 commit comments