Skip to content

Commit 9e3b8c5

Browse files
committed
set taoflow in test
1 parent fa2a3c8 commit 9e3b8c5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pallets/subtensor/src/tests/claim_root.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use crate::{
77
DefaultMinRootClaimAmount, Error, MAX_NUM_ROOT_CLAIMS, MAX_ROOT_CLAIM_THRESHOLD, NetworksAdded,
88
NumRootClaim, NumStakingColdkeys, PendingRootAlphaDivs, RootClaimable, RootClaimableThreshold,
99
StakingColdkeys, StakingColdkeysByIndex, SubnetAlphaIn, SubnetMechanism, SubnetMovingPrice,
10-
SubnetTAO, SubtokenEnabled, Tempo, pallet,
10+
SubnetTAO, SubnetTaoFlow, SubtokenEnabled, Tempo, pallet,
1111
};
1212
use crate::{RootClaimType, RootClaimTypeEnum, RootClaimed};
1313
use approx::assert_abs_diff_eq;
@@ -1037,6 +1037,9 @@ fn test_claim_root_coinbase_distribution() {
10371037
let root_sell_flag = SubtensorModule::get_network_root_sell_flag(&[netuid]);
10381038
assert!(root_sell_flag, "Root sell flag should be true");
10391039

1040+
// Set TAOFlow > 0
1041+
SubnetTaoFlow::<Test>::insert(netuid, 2222_i64);
1042+
10401043
// Check total issuance (saved to pending alpha divs)
10411044
run_to_block(2);
10421045

0 commit comments

Comments
 (0)