From 1730efb7990f64dd68cdb4e94053ab1f947d26bd Mon Sep 17 00:00:00 2001 From: Jesse Abramowitz Date: Wed, 28 Aug 2024 11:03:21 -0400 Subject: [PATCH] clean --- crates/client/entropy_metadata.scale | Bin 209025 -> 209169 bytes pallets/staking/src/lib.rs | 12 ++++++------ pallets/staking/src/tests.rs | 12 ++++++------ 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/crates/client/entropy_metadata.scale b/crates/client/entropy_metadata.scale index b64bce46745bbf632b61dadc91ce674f652dec30..0803d5d68e324b928ebf3678991d8927b42a3b04 100644 GIT binary patch delta 146 zcmZpC$TRT~&xY5}85JhKd46Sb|1B#Hk>rfboE!$`$s2AzPI5Ryj jwTOX>Aq7psFSVisD#^_-eL*avQoBVX<93TiCeQT%mI66Y delta 87 zcmV-d0I2_w;tYY|46y6x0T`3)=hT-1KmihyEa@Bp0+(7q0VI=c=}Z9wlR(=Wlhx@U t0R)rw={5re1dx}pO92+MMe1jk0VtQPfC0moaP$Ephsc2ex5$A4Nv~cUB&z@b diff --git a/pallets/staking/src/lib.rs b/pallets/staking/src/lib.rs index 69726e8bd..e16f3d791 100644 --- a/pallets/staking/src/lib.rs +++ b/pallets/staking/src/lib.rs @@ -415,7 +415,7 @@ pub mod pallet { .or(Err(Error::::InvalidValidatorId))?; let signers = Self::signers(); - ensure!(!signers.contains(&validator_id), Error::::NoUnbodingWhenSigner); + ensure!(!signers.contains(&validator_id), Error::::NoUnbondingWhenSigner); let next_signers = Self::next_signers(); if next_signers.is_some() { @@ -424,7 +424,7 @@ pub mod pallet { .ok_or(Error::::ReshareNotInProgress)? .next_signers .contains(&validator_id), - Error::::NoUnbodingWhenNextSigner + Error::::NoUnbondingWhenNextSigner ); } @@ -446,7 +446,7 @@ pub mod pallet { .or(Err(Error::::InvalidValidatorId))?; let signers = Self::signers(); - ensure!(!signers.contains(&validator_id), Error::::NoUnbodingWhenSigner); + ensure!(!signers.contains(&validator_id), Error::::NoUnbondingWhenSigner); let next_signers = Self::next_signers(); if next_signers.is_some() { @@ -455,7 +455,7 @@ pub mod pallet { .ok_or(Error::::ReshareNotInProgress)? .next_signers .contains(&validator_id), - Error::::NoUnbodingWhenNextSigner + Error::::NoUnbondingWhenNextSigner ); } @@ -480,7 +480,7 @@ pub mod pallet { .or(Err(Error::::InvalidValidatorId))?; let signers = Self::signers(); - ensure!(!signers.contains(&validator_id), Error::::NoUnbodingWhenSigner); + ensure!(!signers.contains(&validator_id), Error::::NoUnbondingWhenSigner); let next_signers = Self::next_signers(); if next_signers.is_some() { ensure!( @@ -488,7 +488,7 @@ pub mod pallet { .ok_or(Error::::ReshareNotInProgress)? .next_signers .contains(&validator_id), - Error::::NoUnbodingWhenNextSigner + Error::::NoUnbondingWhenNextSigner ); } diff --git a/pallets/staking/src/tests.rs b/pallets/staking/src/tests.rs index 1d7430a5e..3209f767d 100644 --- a/pallets/staking/src/tests.rs +++ b/pallets/staking/src/tests.rs @@ -320,7 +320,7 @@ fn it_deletes_when_no_bond_left() { assert_noop!( Staking::withdraw_unbonded(RuntimeOrigin::signed(7), 0), - Error::::NoUnbodingWhenSigner + Error::::NoUnbondingWhenSigner ); assert_ok!(FrameStaking::bond( @@ -333,7 +333,7 @@ fn it_deletes_when_no_bond_left() { assert_noop!( Staking::withdraw_unbonded(RuntimeOrigin::signed(8), 0), - Error::::NoUnbodingWhenNextSigner + Error::::NoUnbondingWhenNextSigner ); }); } @@ -498,7 +498,7 @@ fn it_stops_unbonded_when_signer_or_next_signer() { assert_noop!( Staking::unbond(RuntimeOrigin::signed(7), 0), - Error::::NoUnbodingWhenSigner + Error::::NoUnbondingWhenSigner ); assert_ok!(FrameStaking::bond( @@ -510,7 +510,7 @@ fn it_stops_unbonded_when_signer_or_next_signer() { NextSigners::::put(NextSignerInfo { next_signers: vec![8], confirmations: vec![] }); assert_noop!( Staking::unbond(RuntimeOrigin::signed(8), 0), - Error::::NoUnbodingWhenNextSigner + Error::::NoUnbondingWhenNextSigner ); }); } @@ -527,7 +527,7 @@ fn it_stops_chill_when_signer_or_next_signer() { pallet_staking::RewardDestination::Account(1), )); - assert_noop!(Staking::chill(RuntimeOrigin::signed(7)), Error::::NoUnbodingWhenSigner); + assert_noop!(Staking::chill(RuntimeOrigin::signed(7)), Error::::NoUnbondingWhenSigner); assert_ok!(FrameStaking::bond( RuntimeOrigin::signed(8), @@ -539,7 +539,7 @@ fn it_stops_chill_when_signer_or_next_signer() { assert_noop!( Staking::chill(RuntimeOrigin::signed(8)), - Error::::NoUnbodingWhenNextSigner + Error::::NoUnbondingWhenNextSigner ); }); }