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

frame-support: migrate some tests from decl_* macros to the new pallet macros #12401

Merged
merged 12 commits into from
Apr 25, 2023
Merged

frame-support: migrate some tests from decl_* macros to the new pallet macros #12401

merged 12 commits into from
Apr 25, 2023

Conversation

koushiro
Copy link
Contributor

@koushiro koushiro commented Oct 3, 2022

What does it do?

This PR is a part of #12248.

After some discussion in #12326, most developers prefer to just remove the old decl_* macros.
But there is a lot of code changes involved, so I split it into multiple smaller PRs to be reviewed and merged as quickly as possible into the master branch.

In this PR, I migrate the some tests of frame-support from old decl_* macros to the new pallet attribute macros.

After this, I will migrate the frame-support-test from decl_* macros to pallet macros and finally remove the decl_* macros and do some other trivial things.

@koushiro
Copy link
Contributor Author

koushiro commented Oct 3, 2022

@koushiro koushiro changed the title frame-support: remove decl macros part1 frame-support: migrate some tests from decl_* macros to the new pallet macros Oct 3, 2022
@koushiro
Copy link
Contributor Author

Is there anyone else who can review this PR?

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.

Looks broadly good, just a bit confused about naming details.

@koushiro koushiro closed this Dec 5, 2022
@kianenigma kianenigma added the A0-please_review Pull request needs code review. label Mar 16, 2023
@kianenigma kianenigma reopened this Mar 16, 2023
…part1

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
@ggwpez ggwpez 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. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit and removed A0-please_review Pull request needs code review. labels Apr 12, 2023
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
primitives/core/src/lib.rs Outdated Show resolved Hide resolved
@ggwpez ggwpez requested a review from KiChjang April 12, 2023 15:27
@ggwpez ggwpez self-assigned this Apr 12, 2023
@ggwpez ggwpez 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 Apr 12, 2023
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
@ggwpez
Copy link
Member

ggwpez commented Apr 25, 2023

bot rebase

@paritytech-processbot
Copy link

Rebased

@ggwpez
Copy link
Member

ggwpez commented Apr 25, 2023

bot merge

@paritytech-processbot paritytech-processbot bot merged commit 6f0f5a9 into paritytech:master Apr 25, 2023
@koushiro koushiro deleted the remove-decl-macros-part1 branch April 25, 2023 12:00
gpestana pushed a commit that referenced this pull request May 4, 2023
…llet` macros (#12401)

* frame-support: migrate some tests from decl macros to new pallet attribute macros

* Remove useless type alias

* Remove useless type alias

* Work around for rust issue 52234

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Fix tests

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Use polkadot-compatible paste version

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Fix crate access and add tests

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Typo

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

---------

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: parity-processbot <>
nathanwhit pushed a commit to nathanwhit/substrate that referenced this pull request Jul 19, 2023
…llet` macros (paritytech#12401)

* frame-support: migrate some tests from decl macros to new pallet attribute macros

* Remove useless type alias

* Remove useless type alias

* Work around for rust issue 52234

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Fix tests

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Use polkadot-compatible paste version

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Fix crate access and add tests

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Typo

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

---------

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: parity-processbot <>
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. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants