Un-deprecate ValidateUnsigned (#5003)

* Un-deprecate ValidateUnsigned.

* Bump runtime.

* Bump runtime.

Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
This commit is contained in:
Tomasz Drwięga
2020-02-21 10:42:55 +01:00
committed by GitHub
parent 1dd715547d
commit e8871e0327
8 changed files with 1 additions and 22 deletions
-1
View File
@@ -617,7 +617,6 @@ impl<T: Trait> pallet_session::OneSessionHandler<T::AccountId> for Module<T> {
}
}
#[allow(deprecated)]
impl<T: Trait> frame_support::unsigned::ValidateUnsigned for Module<T> {
type Call = Call<T>;
-2
View File
@@ -112,7 +112,6 @@ fn heartbeat(
authority_index: u32,
id: UintAuthorityId,
) -> dispatch::DispatchResult {
#[allow(deprecated)]
use frame_support::unsigned::ValidateUnsigned;
let heartbeat = Heartbeat {
@@ -126,7 +125,6 @@ fn heartbeat(
};
let signature = id.sign(&heartbeat.encode()).unwrap();
#[allow(deprecated)] // Allow ValidateUnsigned
ImOnline::pre_dispatch(&crate::Call::heartbeat(heartbeat.clone(), signature.clone()))
.map_err(|e| <&'static str>::from(e))?;
ImOnline::heartbeat(