Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

frame pallet macro: fix span for error on wrong returned type. #5580

Merged
merged 5 commits into from
Sep 9, 2024

Conversation

gui1117
Copy link
Contributor

@gui1117 gui1117 commented Sep 4, 2024

Explicitly give the types in some generated code so that the error shows up good when user code is wrong.

@gui1117 gui1117 requested a review from a team as a code owner September 4, 2024 07:13
@gui1117 gui1117 added the T1-FRAME This PR/Issue is related to core FRAME, the framework. label Sep 9, 2024
prdoc/pr_5580.prdoc Outdated Show resolved Hide resolved
Co-authored-by: Bastian Köcher <git@kchr.de>
@bkchr bkchr enabled auto-merge September 9, 2024 20:57
@bkchr bkchr added this pull request to the merge queue Sep 9, 2024
Merged via the queue into paritytech:master with commit aec2b10 Sep 9, 2024
201 of 203 checks passed
@gui1117 gui1117 deleted the gui-fix-return-type-span branch September 9, 2024 23:58
@gui1117
Copy link
Contributor Author

gui1117 commented Sep 9, 2024

@ggwpez do we want to backport this? it happened to me multiple time

@ggwpez ggwpez added the A4-needs-backport Pull request must be backported to all maintained releases. label Sep 11, 2024
github-actions bot pushed a commit that referenced this pull request Sep 11, 2024
Explicitly give the types in some generated code so that the error shows
up good when user code is wrong.

---------

Co-authored-by: Bastian Köcher <git@kchr.de>
(cherry picked from commit aec2b10)
@ggwpez ggwpez added A4-needs-backport Pull request must be backported to all maintained releases. and removed A4-needs-backport Pull request must be backported to all maintained releases. labels Sep 16, 2024
@paritytech-cmd-bot-polkadot-sdk

Successfully created backport PR for stable2407:

github-actions bot pushed a commit that referenced this pull request Sep 16, 2024
Explicitly give the types in some generated code so that the error shows
up good when user code is wrong.

---------

Co-authored-by: Bastian Köcher <git@kchr.de>
(cherry picked from commit aec2b10)
github-actions bot pushed a commit that referenced this pull request Sep 16, 2024
Explicitly give the types in some generated code so that the error shows
up good when user code is wrong.

---------

Co-authored-by: Bastian Köcher <git@kchr.de>
(cherry picked from commit aec2b10)
@paritytech-cmd-bot-polkadot-sdk

Successfully created backport PR for stable2409:

ggwpez pushed a commit that referenced this pull request Sep 16, 2024
Backport #5580 into `stable2407` from gui1117.

See the
[documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md)
on how to use this bot.

<!--
  # To be used by other automation, do not modify:
  original-pr-number: #${pull_number}
-->

Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com>
ggwpez pushed a commit that referenced this pull request Sep 17, 2024
Backport #5580 into `stable2409` from gui1117.

See the
[documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md)
on how to use this bot.

<!--
  # To be used by other automation, do not modify:
  original-pr-number: #${pull_number}
-->

Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com>
@ggwpez ggwpez removed the A4-needs-backport Pull request must be backported to all maintained releases. label Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T1-FRAME This PR/Issue is related to core FRAME, the framework.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants