File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
pallets/mining/rewards-allowance/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ fn it_sets_rewards_allowance_with_timestamp() {
2525 // 27th August 2021 @ 12am is 1630022400000 (start of day)
2626 Timestamp :: set_timestamp ( 1630049371000u64 ) ;
2727
28- assert_ok ! ( MiningRewardsAllowanceTestModule :: set_rewards_allowance_dhx_current (
28+ assert_ok ! ( MiningRewardsAllowanceTestModule :: set_rewards_allowance_dhx_daily (
2929 Origin :: signed( 0 ) ,
3030 5_000u64
3131 ) ) ;
@@ -42,7 +42,7 @@ fn it_sets_rewards_allowance_with_timestamp() {
4242 ) ) ;
4343
4444 // Verify Storage
45- assert_eq ! ( MiningRewardsAllowanceTestModule :: rewards_allowance_dhx_current ( ) , Some ( 5_000u128 ) ) ;
45+ assert_eq ! ( MiningRewardsAllowanceTestModule :: rewards_allowance_dhx_daily ( ) , Some ( 5_000u128 ) ) ;
4646
4747 assert_eq ! ( MiningRewardsAllowanceTestModule :: rewards_allowance_dhx_for_date( 1630022400000 ) , Some ( 5_000u64 ) ) ;
4848
@@ -63,7 +63,7 @@ fn it_sets_rewards_allowance_with_timestamp() {
6363 ) ) ;
6464
6565 // reducing the remaining rewards for a specific date does not change the default rewards allowance
66- assert_eq ! ( MiningRewardsAllowanceTestModule :: rewards_allowance_dhx_current ( ) , Some ( 5_000u128 ) ) ;
66+ assert_eq ! ( MiningRewardsAllowanceTestModule :: rewards_allowance_dhx_daily ( ) , Some ( 5_000u128 ) ) ;
6767
6868 assert_eq ! ( MiningRewardsAllowanceTestModule :: rewards_allowance_dhx_for_date( 1630022400000 ) , Some ( 4_500u64 ) ) ;
6969
You can’t perform that action at this time.
0 commit comments