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> {
17
17
18
18
// Calculate the total staked amount
19
19
let mut total_staked: u64 = 0 ;
20
- for ( _account , _netuid , stake) in Stake :: < T > :: iter ( ) {
20
+ for ( _hotkey , _coldkey , stake) in Stake :: < T > :: iter ( ) {
21
21
total_staked = total_staked. saturating_add ( stake) ;
22
22
}
23
23
Original file line number Diff line number Diff line change @@ -1075,8 +1075,12 @@ pub type SignedExtra = (
1075
1075
frame_metadata_hash_extension:: CheckMetadataHash < Runtime > ,
1076
1076
) ;
1077
1077
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
+ ) ;
1080
1084
1081
1085
// Unchecked extrinsic type as expected by this runtime.
1082
1086
pub type UncheckedExtrinsic =
You can’t perform that action at this time.
0 commit comments