Skip to content

Commit 4e2df15

Browse files
committed
fix weights min stake tests also
1 parent 43c88a6 commit 4e2df15

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pallets/subtensor/tests/weights.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -481,11 +481,11 @@ fn test_set_weights_min_stake_failed() {
481481

482482
// Check the signed extension function.
483483
assert_eq!(SubtensorModule::get_weights_min_stake(), 20_000_000_000_000);
484-
assert!(!SubtensorModule::check_weights_min_stake(&hotkey));
484+
assert!(!SubtensorModule::check_weights_min_stake(&hotkey, netuid));
485485
SubtensorModule::increase_stake_on_hotkey_account(&hotkey, 19_000_000_000_000);
486-
assert!(!SubtensorModule::check_weights_min_stake(&hotkey));
486+
assert!(!SubtensorModule::check_weights_min_stake(&hotkey, netuid));
487487
SubtensorModule::increase_stake_on_hotkey_account(&hotkey, 20_000_000_000_000);
488-
assert!(SubtensorModule::check_weights_min_stake(&hotkey));
488+
assert!(SubtensorModule::check_weights_min_stake(&hotkey, netuid));
489489

490490
// Check that it fails at the pallet level.
491491
SubtensorModule::set_weights_min_stake(100_000_000_000_000);

0 commit comments

Comments
 (0)