Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
open-junius committed Jul 5, 2024
1 parent 122c021 commit 85fafe6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion pallets/subtensor/tests/coinbase.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use sp_core::U256;
fn test_hotkey_hashing() {
new_test_ext(1).execute_with(|| {
for i in 0..10000 {
SubtensorModule::hash_hotkey_to_u64(&U256::from(i)).is_some();
assert!(SubtensorModule::hash_hotkey_to_u64(&U256::from(i)).is_some());
}
});
}
Expand Down
3 changes: 0 additions & 3 deletions pallets/subtensor/tests/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,15 +160,12 @@ parameter_types! {
pub const InitialSubnetLimit: u16 = 10; // Max 10 subnets.
pub const InitialNetworkRateLimit: u64 = 0;
pub const InitialTargetStakesPerInterval: u16 = 2;
<<<<<<< HEAD
pub const InitialHotkeyEmissionTempo: u64 = 0; // Defaults to draining every block.
pub const InitialNetworkMaxStake: u64 = 500_000_000_000_000; // 500,000 TAO
=======
pub const InitialHotkeySwapCost: u64 = 1_000_000_000;
pub const InitialAlphaHigh: u16 = 58982; // Represents 0.9 as per the production default
pub const InitialAlphaLow: u16 = 45875; // Represents 0.7 as per the production default
pub const InitialLiquidAlphaOn: bool = false; // Default value for LiquidAlphaOn
>>>>>>> main
}

// Configure collective pallet for council
Expand Down

0 comments on commit 85fafe6

Please sign in to comment.