Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Update pallet macro migrations. #8766

Merged
merged 3 commits into from
May 10, 2021

Conversation

shaunxw
Copy link
Contributor

@shaunxw shaunxw commented May 9, 2021

Related to #8762 (comment)

Updated some of the merged pallet macro migrations:

  • Replace unnecessary usages of DispatchResultWithPostInfo with DispatchResult.
  • After second check I noticed the visibility of several dispatchable calls was made to pub in pallet macro migration, but it should be pub(crate).

@shaunxw shaunxw requested a review from andresilva as a code owner May 9, 2021 02:03
@shawntabrizi shawntabrizi added B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit labels May 9, 2021
@shawntabrizi
Copy link
Member

I dont think pub vs pub(crate) is really that important.

All dispatchables are basically pub through the Call type

frame/im-online/src/lib.rs Outdated Show resolved Hide resolved
@bkchr bkchr merged commit 3f11019 into paritytech:master May 10, 2021
@shaunxw shaunxw deleted the sw/update-pallet-macro-migration branch May 10, 2021 21:34
nazar-pc pushed a commit to autonomys/substrate that referenced this pull request Aug 8, 2021
* Update pallet macro migrations.

* Revert dispatchable call visibility changes.

* fmt
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants