Update pallet macro migrations. (#8766)

* Update pallet macro migrations.

* Revert dispatchable call visibility changes.

* fmt
This commit is contained in:
Shaun Wang
2021-05-11 01:55:25 +12:00
committed by GitHub
parent f16f8def08
commit 9ae9267e9a
5 changed files with 15 additions and 15 deletions
+2 -2
View File
@@ -397,7 +397,7 @@ pub mod pallet {
// since signature verification is done in `validate_unsigned`
// we can skip doing it here again.
_signature: <T::AuthorityId as RuntimeAppPublic>::Signature,
) -> DispatchResultWithPostInfo {
) -> DispatchResult {
ensure_none(origin)?;
let current_session = T::ValidatorSet::session_index();
@@ -417,7 +417,7 @@ pub mod pallet {
&network_state
);
Ok(().into())
Ok(())
} else if exists {
Err(Error::<T>::DuplicatedHeartbeat)?
} else {
+1 -1
View File
@@ -114,7 +114,7 @@ fn heartbeat(
authority_index: u32,
id: UintAuthorityId,
validators: Vec<u64>,
) -> dispatch::DispatchResultWithPostInfo {
) -> dispatch::DispatchResult {
use frame_support::unsigned::ValidateUnsigned;
let heartbeat = Heartbeat {