diff --git a/crates/client/entropy_metadata.scale b/crates/client/entropy_metadata.scale index b64bce467..0803d5d68 100644 Binary files a/crates/client/entropy_metadata.scale and b/crates/client/entropy_metadata.scale differ 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 ); }); }