@@ -19,12 +19,12 @@ use sp_core::{Get, H256, U256};
19
19
fn test_add_stake_dispatch_info_ok ( ) {
20
20
new_test_ext ( 1 ) . execute_with ( || {
21
21
let hotkey = U256 :: from ( 0 ) ;
22
- let amount = 5000 ;
22
+ let amount_staked = 5000 ;
23
23
let netuid = 1 ;
24
24
let call = RuntimeCall :: SubtensorModule ( SubtensorCall :: add_stake {
25
25
hotkey,
26
26
netuid,
27
- amount ,
27
+ amount_staked ,
28
28
} ) ;
29
29
assert_eq ! (
30
30
call. get_dispatch_info( ) ,
@@ -2075,17 +2075,17 @@ fn test_stake_below_min_validate() {
2075
2075
let subnet_owner_hotkey = U256 :: from ( 1002 ) ;
2076
2076
let hotkey = U256 :: from ( 2 ) ;
2077
2077
let coldkey = U256 :: from ( 3 ) ;
2078
- let amount = DefaultMinStake :: < Test > :: get ( ) + DefaultStakingFee :: < Test > :: get ( ) - 1 ;
2078
+ let amount_staked = DefaultMinStake :: < Test > :: get ( ) + DefaultStakingFee :: < Test > :: get ( ) - 1 ;
2079
2079
2080
2080
let netuid = add_dynamic_network ( & subnet_owner_hotkey, & subnet_owner_coldkey) ;
2081
2081
SubtensorModule :: create_account_if_non_existent ( & coldkey, & hotkey) ;
2082
- SubtensorModule :: add_balance_to_coldkey_account ( & coldkey, amount ) ;
2082
+ SubtensorModule :: add_balance_to_coldkey_account ( & coldkey, amount_staked ) ;
2083
2083
2084
2084
// Add stake call
2085
2085
let call = RuntimeCall :: SubtensorModule ( SubtensorCall :: add_stake {
2086
2086
hotkey,
2087
2087
netuid,
2088
- amount ,
2088
+ amount_staked ,
2089
2089
} ) ;
2090
2090
2091
2091
let info: crate :: DispatchInfo =
@@ -2104,11 +2104,11 @@ fn test_stake_below_min_validate() {
2104
2104
) ;
2105
2105
2106
2106
// Increase the stake to be equal to the minimum, but leave the balance low
2107
- let amount = DefaultMinStake :: < Test > :: get ( ) + DefaultStakingFee :: < Test > :: get ( ) ;
2107
+ let amount_staked = DefaultMinStake :: < Test > :: get ( ) + DefaultStakingFee :: < Test > :: get ( ) ;
2108
2108
let call_2 = RuntimeCall :: SubtensorModule ( SubtensorCall :: add_stake {
2109
2109
hotkey,
2110
2110
netuid,
2111
- amount ,
2111
+ amount_staked ,
2112
2112
} ) ;
2113
2113
2114
2114
// Submit to the signed extension validate function
0 commit comments