Skip to content

Commit 7b4bdab

Browse files
committed
fix claim root test
1 parent ed2bab6 commit 7b4bdab

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

pallets/subtensor/src/tests/claim_root.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,11 +1184,9 @@ fn test_claim_root_with_swap_coldkey() {
11841184
);
11851185

11861186
// Swap coldkey
1187-
1188-
assert_ok!(SubtensorModule::perform_swap_coldkey(
1189-
&coldkey,
1190-
&new_coldkey,
1191-
));
1187+
let swap_cost = SubtensorModule::get_key_swap_cost();
1188+
SubtensorModule::add_balance_to_coldkey_account(&coldkey, swap_cost.to_u64());
1189+
assert_ok!(SubtensorModule::do_swap_coldkey(&coldkey, &new_coldkey,));
11921190

11931191
// Check swapped keys claimed values
11941192

0 commit comments

Comments
 (0)