Skip to content

Commit

Permalink
Fix test_add_stake_err_signature
Browse files Browse the repository at this point in the history
  • Loading branch information
gztensor committed Jan 7, 2025
1 parent 49d1748 commit 2786f3e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions pallets/subtensor/src/tests/staking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,17 +132,17 @@ fn test_dividends_with_run_to_block() {
#[test]
fn test_add_stake_err_signature() {
new_test_ext(1).execute_with(|| {
assert!(false);

// let hotkey_account_id = U256::from(654); // bogus
// let amount = 20000; // Not used
let hotkey_account_id = U256::from(654); // bogus
let amount = 20000; // Not used
let netuid = 1;

// let result = SubtensorModule::add_stake(
// <<Test as Config>::RuntimeOrigin>::none(),
// hotkey_account_id,
// amount,
// );
// assert_eq!(result, DispatchError::BadOrigin.into());
let result = SubtensorModule::add_stake(
<<Test as Config>::RuntimeOrigin>::none(),
hotkey_account_id,
netuid,
amount,
);
assert_eq!(result, DispatchError::BadOrigin.into());
});
}

Expand Down

0 comments on commit 2786f3e

Please sign in to comment.