paritytech / polkadot-sdk

The Parity Polkadot Blockchain SDK
https://polkadot.com/
1.89k stars 696 forks source link

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

Closed gui1117 closed 2 months ago

gui1117 commented 2 months ago

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

gui1117 commented 2 months ago

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

paritytech-cmd-bot-polkadot-sdk[bot] commented 2 months ago

Successfully created backport PR for stable2407:

paritytech-cmd-bot-polkadot-sdk[bot] commented 2 months ago

Successfully created backport PR for stable2409: