Skip to content

Commit 4c2629e

Browse files
author
Cameron Fairchild
committed
Add back old migration and fix var names
1 parent c421589 commit 4c2629e

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

pallets/subtensor/src/utils/try_state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

runtime/src/lib.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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.
10821086
pub type UncheckedExtrinsic =

0 commit comments

Comments
 (0)