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

Make pallets use construct_runtime #7950

Merged
merged 10 commits into from
Jan 25, 2021

Conversation

gui1117
Copy link
Contributor

@gui1117 gui1117 commented Jan 21, 2021

Related to #7949

This PR introduce a few types, and make pallet-assets use construct_runtime.

@github-actions github-actions bot added the A0-please_review Pull request needs code review. label Jan 21, 2021


/// An unchecked extrinsic type to be used in test.
pub type MockUncheckedExtrinsic<T, Signature = (), Extra = ()> = generic::UncheckedExtrinsic<
Copy link
Contributor

Choose a reason for hiding this comment

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

better to make these std only?

Copy link
Member

Choose a reason for hiding this comment

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

^^^ + put in some extra file testing.rs? Or something like that?

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 I moved into mocking.rs and made it std only

frame/support/procedural/src/lib.rs Outdated Show resolved Hide resolved


/// An unchecked extrinsic type to be used in test.
pub type MockUncheckedExtrinsic<T, Signature = (), Extra = ()> = generic::UncheckedExtrinsic<
Copy link
Member

Choose a reason for hiding this comment

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

^^^ + put in some extra file testing.rs? Or something like that?

frame/system/src/lib.rs Outdated Show resolved Hide resolved
frame/system/src/lib.rs Outdated Show resolved Hide resolved
gui1117 and others added 4 commits January 22, 2021 10:43
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
Co-authored-by: David <dvdplm@gmail.com>
Co-authored-by: David <dvdplm@gmail.com>
Co-authored-by: David <dvdplm@gmail.com>
@gui1117 gui1117 added A3-in_progress Pull request is in progress. No review needed at this stage. 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. and removed A0-please_review Pull request needs code review. labels Jan 22, 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 Jan 22, 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

frame/assets/Cargo.toml Outdated Show resolved Hide resolved
@gui1117
Copy link
Contributor Author

gui1117 commented Jan 25, 2021

bot merge

@ghost
Copy link

ghost commented Jan 25, 2021

Waiting for commit status.

@ghost
Copy link

ghost commented Jan 25, 2021

Merge failed: "Required status check \"continuous-integration/gitlab-check-labels\" is pending."

@gui1117 gui1117 merged commit dd173ae into master Jan 25, 2021
@gui1117 gui1117 deleted the gui-migrate-tests-to-construct_runtime branch January 25, 2021 12:20
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.

6 participants