File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
pallets/subtensor/src/utils Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ impl<T: Config> Pallet<T> {
1717
1818 // Calculate the total staked amount
1919 let mut total_staked: u64 = 0 ;
20- for ( _account , _netuid , stake) in Stake :: < T > :: iter ( ) {
20+ for ( _hotkey , _coldkey , stake) in Stake :: < T > :: iter ( ) {
2121 total_staked = total_staked. saturating_add ( stake) ;
2222 }
2323
Original file line number Diff line number Diff line change @@ -1075,8 +1075,12 @@ pub type SignedExtra = (
10751075 frame_metadata_hash_extension:: CheckMetadataHash < Runtime > ,
10761076) ;
10771077
1078- type Migrations =
1079- ( pallet_subtensor:: migrations:: migrate_fix_pending_emission:: migration:: Migration < Runtime > , ) ;
1078+ type Migrations = (
1079+ pallet_subtensor:: migrations:: migrate_init_total_issuance:: initialise_total_issuance:: Migration <
1080+ Runtime ,
1081+ > ,
1082+ pallet_subtensor:: migrations:: migrate_fix_pending_emission:: migration:: Migration < Runtime > ,
1083+ ) ;
10801084
10811085// Unchecked extrinsic type as expected by this runtime.
10821086pub type UncheckedExtrinsic =
You can’t perform that action at this time.
0 commit comments