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

Migrate examples to use pallet macro #8138

Merged
merged 6 commits into from
Feb 22, 2021
Merged

Migrate examples to use pallet macro #8138

merged 6 commits into from
Feb 22, 2021

Conversation

gui1117
Copy link
Contributor

@gui1117 gui1117 commented Feb 16, 2021

part of #7882

migrate pallet-example, pallet-example-offchain-worker and pallet-example-parallel to pallet macro.

the doc in pallet-example is slightly changed. Also it might be good to also have inherent, validate unsigned, and error docs but this is for later PR.

At some point I think the doc in frame_support::pallet and pallet-example should be merged

@gui1117 gui1117 added A0-please_review Pull request needs code review. 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. A3-in_progress Pull request is in progress. No review needed at this stage. and removed A0-please_review Pull request needs code review. labels Feb 16, 2021
@gui1117 gui1117 added A0-please_review Pull request needs code review. and removed A3-in_progress Pull request is in progress. No review needed at this stage. labels Feb 16, 2021
Copy link
Contributor

@ascjones ascjones left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@kianenigma kianenigma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -18,7 +18,7 @@
//! Autogenerated weights for pallet_balances
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 2.0.0
//! DATE: 2021-01-06, STEPS: [50, ], REPEAT: 20, LOW RANGE: [], HIGH RANGE: []
//! DATE: 2021-01-06, STEPS: \[50, \], REPEAT: 20, LOW RANGE: [], HIGH RANGE: []
Copy link
Member

@shawntabrizi shawntabrizi Feb 21, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where is this change coming from?

do you need to update the weight template / output code?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes we probably need to update the templates,
rust doc complains the content inside [] is not a rust type

@gui1117
Copy link
Contributor Author

gui1117 commented Feb 22, 2021

bot merge

@ghost
Copy link

ghost commented Feb 22, 2021

Waiting for commit status.

@ghost
Copy link

ghost commented Feb 22, 2021

Checks failed; merge aborted.

@gui1117 gui1117 merged commit fd88fbf into master Feb 22, 2021
@gui1117 gui1117 deleted the gui-migrate-examples branch February 22, 2021 11:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. 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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants