Skip to content

Commit d1c25d3

Browse files
committed
check stake after migration
1 parent 1a5009a commit d1c25d3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pallets/subtensor/tests/migration.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,5 +519,9 @@ fn test_migrate_fix_pending_emissions() {
519519
PendingdHotkeyEmission::<Test>::get(taostats_old_hk_account),
520520
0
521521
);
522+
523+
// Check the stake entry is removed
524+
assert_eq!(Stake::<Test>::get(datura_old_hk_account, null_account), 0);
525+
assert_eq!(Stake::<Test>::get(taostats_old_hk_account, null_account), 0);
522526
})
523527
}

0 commit comments

Comments
 (0)