File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
pallets/subtensor/src/tests Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -89,12 +89,16 @@ fn test_coinbase_tao_issuance_base() {
8989 let subnet_owner_ck = U256 :: from ( 1001 ) ;
9090 let subnet_owner_hk = U256 :: from ( 1002 ) ;
9191 let netuid = add_dynamic_network ( & subnet_owner_hk, & subnet_owner_ck) ;
92+ let total_issuance_before = TotalIssuance :: < Test > :: get ( ) ;
9293 SubnetMovingPrice :: < Test > :: insert ( netuid, I96F32 :: from ( 3141 ) / I96F32 :: from ( 1000 ) ) ;
9394 let tao_in_before = SubnetTAO :: < Test > :: get ( netuid) ;
9495 let total_stake_before = TotalStake :: < Test > :: get ( ) ;
9596 SubtensorModule :: run_coinbase ( U96F32 :: from_num ( emission) ) ;
9697 assert_eq ! ( SubnetTAO :: <Test >:: get( netuid) , tao_in_before + emission) ;
97- assert_eq ! ( TotalIssuance :: <Test >:: get( ) , emission) ;
98+ assert_eq ! (
99+ TotalIssuance :: <Test >:: get( ) ,
100+ total_issuance_before + emission
101+ ) ;
98102 assert_eq ! ( TotalStake :: <Test >:: get( ) , total_stake_before + emission) ;
99103 } ) ;
100104}
You can’t perform that action at this time.
0 commit comments