Explain usage of <T: Config> in FRAME storage + Update parachain pallet template #4941
Explain usage of <T: Config> in FRAME storage + Update parachain pallet template #4941kianenigma merged 27 commits intomasterfrom
<T: Config> in FRAME storage + Update parachain pallet template #4941Conversation
Also we can't have the banner printed all the time, because it leads to printing malformed chain specs.
+ small fixes
+ addressing some nits
<T: Config> in FRAME storage + Update parachain pallet template
| .or_else( | ||
| |e| if e == TokenError::CannotCreate.into() { Ok(()) } else { Err(e) }, | ||
| |e| { | ||
| if e == TokenError::CannotCreate.into() { |
…aritytech/polkadot-sdk into kiz-update-tempalates-and-t-in-storage
|
bot fmt |
|
"$PIPELINE_SCRIPTS_DIR/commands/fmt/fmt.sh" was queued. Comment |
|
@kianenigma Command |
| //! A shell pallet built with [`frame`]. | ||
| //! | ||
| //! To get started with this pallet, try implementing the guide in | ||
| //! <https://paritytech.github.io/polkadot-sdk/master/polkadot_sdk_docs/guides/your_first_pallet/index.html> |
There was a problem hiding this comment.
| //! <https://paritytech.github.io/polkadot-sdk/master/polkadot_sdk_docs/guides/your_first_pallet/index.html> | |
| //! <https://paritytech.github.io/polkadot-sdk/master/polkadot_sdk_docs/guides/your_first_pallet/index.html>. |
|
|
||
| # primitive deps | ||
| sp-runtime = { workspace = true } | ||
| sp-std = { workspace = true } |
There was a problem hiding this comment.
Was sp-std be proposed to soft deprecate?
#2101
There was a problem hiding this comment.
hmm I see, a mistake indeed. Would you like to open a PR that reverts this + added a deprecation warning to sp-std, preventing this from happening?
There was a problem hiding this comment.
I think I can make a following PR to remove the usage of sp-std here.
I don't know how to warn deprecation for a crate...
Following PR for #4941 that removes usage of `sp-std` on templates `sp-std` crate was proposed to deprecate on #2101 @kianenigma --------- Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
…llet template (paritytech#4941) Explains one of the annoying parts of FRAME storage that we have seen multiple times in PBA everyone gets stuck on. I have not updated the other two templates for now, and only reflected it in the parachain template. That can happen in a follow-up. - [x] Update possible answers in SE about the same topic. --------- Co-authored-by: Serban Iorga <serban@parity.io> Co-authored-by: command-bot <>
Following PR for paritytech#4941 that removes usage of `sp-std` on templates `sp-std` crate was proposed to deprecate on paritytech#2101 @kianenigma --------- Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
* master: (120 commits) network/tx: Ban peers with tx that fail to decode (#5002) Try State Hook for Bounties (#4563) [statement-distribution] Add metrics for distributed statements in V2 (#4554) added sync command (#4818) Bridges V2 refactoring backport and `pallet_bridge_messages` simplifications (#4935) xcm-executor: Improve logging (#4996) Remove usage of `sp-std` on templates (#5001) fixed cmd bot commenting not working (#5000) Explain usage of `<T: Config>` in FRAME storage + Update parachain pallet template (#4941) Expose metadata-hash feature from polkadot crate (#4886) Add `MAX_INSTRUCTIONS_TO_DECODE` to XCMv2 (#4978) add notices to the implementer's guide docs that changed for elastic scaling (#4983) `polkadot-parachain` simplifications and deduplications (#4916) Update Templates README docs (#4980) allow clear_origin in safe xcm builder (#4777) litep2p/peerstore: Fix bump last updated time (#4971) Make `tracing::log` work in the runtime (#4863) sp-core: Improve docs generated by `generate_feature_enabled_macro` (#4968) [Backport] Version bumps and prdocs reordering from 1.14.0 (#4955) Assets: can_decrease/increase for destroying asset is not successful (#3286) ...
…llet template (paritytech#4941) Explains one of the annoying parts of FRAME storage that we have seen multiple times in PBA everyone gets stuck on. I have not updated the other two templates for now, and only reflected it in the parachain template. That can happen in a follow-up. - [x] Update possible answers in SE about the same topic. --------- Co-authored-by: Serban Iorga <serban@parity.io> Co-authored-by: command-bot <>
Following PR for paritytech#4941 that removes usage of `sp-std` on templates `sp-std` crate was proposed to deprecate on paritytech#2101 @kianenigma --------- Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
…llet template (paritytech#4941) Explains one of the annoying parts of FRAME storage that we have seen multiple times in PBA everyone gets stuck on. I have not updated the other two templates for now, and only reflected it in the parachain template. That can happen in a follow-up. - [x] Update possible answers in SE about the same topic. --------- Co-authored-by: Serban Iorga <serban@parity.io> Co-authored-by: command-bot <>
Following PR for paritytech#4941 that removes usage of `sp-std` on templates `sp-std` crate was proposed to deprecate on paritytech#2101 @kianenigma --------- Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
Explains one of the annoying parts of FRAME storage that we have seen multiple times in PBA everyone gets stuck on.
I have not updated the other two templates for now, and only reflected it in the parachain template. That can happen in a follow-up.