Skip to content

Commit 04137e1

Browse files
author
Samuel Dare
committed
chore: change error def in delegate take test , lints
1 parent a90a3ce commit 04137e1

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

pallets/subtensor/src/root.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,6 @@ impl<T: Config> Pallet<T> {
306306
.unwrap_or(false)
307307
}
308308

309-
310309
/// Computes and sets emission values for the root network which determine the emission for all subnets.
311310
///
312311
/// This function is responsible for calculating emission based on network weights, stake values,

pallets/subtensor/tests/staking.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2789,7 +2789,7 @@ fn test_delegate_take_can_be_decreased() {
27892789
hotkey0,
27902790
u16::MAX / 20
27912791
),
2792-
Error::<Test>::InvalidTake
2792+
Error::<Test>::DelegateTakeTooLow
27932793
);
27942794
});
27952795
}

runtime/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1184,7 +1184,6 @@ pub type SignedExtra = (
11841184
pallet_commitments::CommitmentsSignedExtension<Runtime>,
11851185
);
11861186

1187-
11881187
type Migrations = pallet_grandpa::migrations::MigrateV4ToV5<Runtime>;
11891188

11901189
// Unchecked extrinsic type as expected by this runtime.

0 commit comments

Comments
 (0)