We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cd3e65 commit a99c55fCopy full SHA for a99c55f
pallets/subtensor/tests/staking.rs
@@ -2763,18 +2763,18 @@ fn test_can_set_zero_take_ok() {
2763
// Coldkey / hotkey 0 become delegates
2764
assert_ok!(SubtensorModule::do_become_delegate(
2765
<<Test as Config>::RuntimeOrigin>::signed(coldkey0),
2766
- hotkey0
+ hotkey0,
2767
+ u16::MAX / 10
2768
));
2769
2770
// Coldkey / hotkey 0 decreases take to 0%
2771
assert_ok!(SubtensorModule::do_decrease_take(
2772
2773
hotkey0,
- netuid,
2774
0
2775
2776
assert_eq!(
2777
- SubtensorModule::get_delegate_take(&hotkey0, netuid),
+ SubtensorModule::get_last_tx_block_delegate_take(&hotkey0),
2778
2779
);
2780
});
0 commit comments