Skip to content

Commit 8b62e98

Browse files
committed
Address Loris' comments
1 parent a99e497 commit 8b62e98

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pallets/subtensor/src/tests/mock.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,7 @@ pub(crate) fn swap_tao_to_alpha(netuid: NetUid, tao: TaoCurrency) -> (AlphaCurre
10311031

10321032
let result = result.unwrap();
10331033

1034-
// we don't want to have silent 0 comparissons in tests
1034+
// we don't want to have silent 0 comparisons in tests
10351035
assert!(result.amount_paid_out > AlphaCurrency::ZERO);
10361036

10371037
(result.amount_paid_out, result.fee_paid.into())
@@ -1064,7 +1064,7 @@ pub(crate) fn swap_alpha_to_tao_ext(
10641064

10651065
let result = result.unwrap();
10661066

1067-
// we don't want to have silent 0 comparissons in tests
1067+
// we don't want to have silent 0 comparisons in tests
10681068
assert!(!result.amount_paid_out.is_zero());
10691069

10701070
(result.amount_paid_out, result.fee_paid.into())

pallets/subtensor/src/tests/staking.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4168,7 +4168,7 @@ fn test_remove_99_9989_per_cent_stake_leaves_a_little() {
41684168
));
41694169

41704170
// Check that all alpha was unstaked and 99% TAO balance was returned (less fees)
4171-
// let fee = <Test as Config>::SwapExt::approx_fee_amount(netuid.into(), (amount as f64 * 0.99) as u64);
4171+
// let fee = <Test as Config>::SwapInterface::approx_fee_amount(netuid.into(), (amount as f64 * 0.99) as u64);
41724172
assert_abs_diff_eq!(
41734173
SubtensorModule::get_coldkey_balance(&coldkey_account_id),
41744174
(amount as f64 * 0.99) as u64 - fee,

pallets/transaction-fee/src/tests/mock.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ pub(crate) fn swap_alpha_to_tao_ext(
630630

631631
let result = result.unwrap();
632632

633-
// we don't want to have silent 0 comparissons in tests
633+
// we don't want to have silent 0 comparisons in tests
634634
assert!(!result.amount_paid_out.is_zero());
635635

636636
(result.amount_paid_out.to_u64(), result.fee_paid.to_u64())

0 commit comments

Comments
 (0)