mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-30 07:17:56 +00:00
Update pallet macro migrations. (#8766)
* Update pallet macro migrations. * Revert dispatchable call visibility changes. * fmt
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user